2024-01-02 11:29:13 +00:00
|
|
|
{ lib, buildGraalvmNativeImage, graalvmCEPackages, removeReferencesTo, fetchurl
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildGraalvmNativeImage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "clj-kondo";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2023.12.15";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-01-02 11:29:13 +00:00
|
|
|
url =
|
|
|
|
"https://github.com/clj-kondo/${pname}/releases/download/v${version}/${pname}-${version}-standalone.jar";
|
|
|
|
sha256 = "sha256-YVFG7eY0wOB41kKJWydXfil8uyDSHRxPVry9L3u2P4k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
graalvmDrv = graalvmCEPackages.graalvm-ce;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ removeReferencesTo ];
|
|
|
|
|
|
|
|
extraNativeImageBuildArgs =
|
|
|
|
[ "-H:+ReportExceptionStackTraces" "--no-fallback" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
remove-references-to -t ${graalvmDrv} $out/bin/${pname}
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "A linter for Clojure code that sparks joy";
|
2021-04-25 03:57:28 +00:00
|
|
|
homepage = "https://github.com/clj-kondo/clj-kondo";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.epl10;
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog =
|
|
|
|
"https://github.com/clj-kondo/clj-kondo/blob/v${version}/CHANGELOG.md";
|
2024-01-13 08:15:51 +00:00
|
|
|
maintainers = with maintainers; [ jlesquembre bandresen ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|