Skip to content

Commit

Permalink
clj-kondo: Remove duplicate postInstall logic
Browse files Browse the repository at this point in the history
`buildGraalvmNativeImage` takes care of removing references.
  • Loading branch information
jcf authored Jan 27, 2024
1 parent 30b34ac commit bba237c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pkgs/development/tools/clj-kondo/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, buildGraalvmNativeImage, graalvmCEPackages, removeReferencesTo, fetchurl
{ lib, buildGraalvmNativeImage, graalvmCEPackages, fetchurl
}:

buildGraalvmNativeImage rec {
Expand All @@ -13,15 +13,9 @@ buildGraalvmNativeImage rec {

graalvmDrv = graalvmCEPackages.graalvm-ce;

nativeBuildInputs = [ removeReferencesTo ];

extraNativeImageBuildArgs =
[ "-H:+ReportExceptionStackTraces" "--no-fallback" ];

postInstall = ''
remove-references-to -t ${graalvmDrv} $out/bin/${pname}
'';

meta = with lib; {
description = "A linter for Clojure code that sparks joy";
homepage = "https://github.com/clj-kondo/clj-kondo";
Expand Down

0 comments on commit bba237c

Please sign in to comment.