nixpkgs/pkgs/development/tools/clj-kondo/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, buildGraalvmNativeImage, graalvmCEPackages, removeReferencesTo, fetchurl
}:
2019-08-08 19:38:04 +00:00
2021-11-23 15:31:56 +00:00
buildGraalvmNativeImage rec {
2019-08-08 19:38:04 +00:00
pname = "clj-kondo";
2023-12-16 04:45:46 +00:00
version = "2023.12.15";
2019-08-08 19:38:04 +00:00
src = fetchurl {
url =
"https://github.com/clj-kondo/${pname}/releases/download/v${version}/${pname}-${version}-standalone.jar";
2023-12-16 04:45:46 +00:00
sha256 = "sha256-YVFG7eY0wOB41kKJWydXfil8uyDSHRxPVry9L3u2P4k=";
2019-08-08 19:38:04 +00:00
};
graalvmDrv = graalvmCEPackages.graalvm-ce;
nativeBuildInputs = [ removeReferencesTo ];
extraNativeImageBuildArgs =
[ "-H:+ReportExceptionStackTraces" "--no-fallback" ];
postInstall = ''
remove-references-to -t ${graalvmDrv} $out/bin/${pname}
'';
2019-08-08 19:38:04 +00:00
meta = with lib; {
description = "A linter for Clojure code that sparks joy";
2021-04-22 14:25:41 +00:00
homepage = "https://github.com/clj-kondo/clj-kondo";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
2019-08-08 19:38:04 +00:00
license = licenses.epl10;
changelog =
"https://github.com/clj-kondo/clj-kondo/blob/v${version}/CHANGELOG.md";
maintainers = with maintainers; [ jlesquembre bandresen ];
2019-08-08 19:38:04 +00:00
};
}