biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / clj-kondo / default.nix
blobf1900ed9a3302dfb5af5b27c404ca790e45d73c9
1 { lib, buildGraalvmNativeImage, graalvmCEPackages, removeReferencesTo, fetchurl
2 }:
4 buildGraalvmNativeImage rec {
5   pname = "clj-kondo";
6   version = "2024.03.13";
8   src = fetchurl {
9     url =
10       "https://github.com/clj-kondo/${pname}/releases/download/v${version}/${pname}-${version}-standalone.jar";
11     sha256 = "sha256-4V0YtGRbSzebxGYkoyCJEA4e1vtYWNbIHyXOlTfvGTU=";
12   };
14   graalvmDrv = graalvmCEPackages.graalvm-ce;
16   nativeBuildInputs = [ removeReferencesTo ];
18   extraNativeImageBuildArgs =
19     [ "-H:+ReportExceptionStackTraces" "--no-fallback" ];
21   postInstall = ''
22     remove-references-to -t ${graalvmDrv} $out/bin/${pname}
23   '';
25   meta = with lib; {
26     description = "A linter for Clojure code that sparks joy";
27     homepage = "https://github.com/clj-kondo/clj-kondo";
28     sourceProvenance = with sourceTypes; [ binaryBytecode ];
29     license = licenses.epl10;
30     changelog =
31       "https://github.com/clj-kondo/clj-kondo/blob/v${version}/CHANGELOG.md";
32     maintainers = with maintainers; [ jlesquembre bandresen ];
33   };