bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
34 lines
1 KiB
Nix
34 lines
1 KiB
Nix
{ lib, buildGraalvmNativeImage, graalvmCEPackages, removeReferencesTo, fetchurl
|
|
}:
|
|
|
|
buildGraalvmNativeImage rec {
|
|
pname = "clj-kondo";
|
|
version = "2024.05.24";
|
|
|
|
src = fetchurl {
|
|
url =
|
|
"https://github.com/clj-kondo/${pname}/releases/download/v${version}/${pname}-${version}-standalone.jar";
|
|
sha256 = "sha256-vqdTfsIRPi2VlJLcbesRSqa/KFgqbk13vJBbEYd3heM=";
|
|
};
|
|
|
|
graalvmDrv = graalvmCEPackages.graalvm-ce;
|
|
|
|
nativeBuildInputs = [ removeReferencesTo ];
|
|
|
|
extraNativeImageBuildArgs =
|
|
[ "-H:+ReportExceptionStackTraces" "--no-fallback" ];
|
|
|
|
postInstall = ''
|
|
remove-references-to -t ${graalvmDrv} $out/bin/${pname}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Linter for Clojure code that sparks joy";
|
|
homepage = "https://github.com/clj-kondo/clj-kondo";
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
license = licenses.epl10;
|
|
changelog =
|
|
"https://github.com/clj-kondo/clj-kondo/blob/v${version}/CHANGELOG.md";
|
|
maintainers = with maintainers; [ jlesquembre bandresen ];
|
|
};
|
|
}
|