forked from mirrors/nixpkgs
Merge pull request #152384 from thiagokokada/fix-meta-on-build-graalvm-native-image
buildGraalvmNativeImage: fix meta
This commit is contained in:
commit
2c1898ff34
|
@ -21,6 +21,7 @@
|
|||
, graalvmXmx ? "-J-Xmx6g"
|
||||
# The GraalVM to use
|
||||
, graalvm ? graalvmCEPackages.graalvm11-ce
|
||||
, meta ? { }
|
||||
, ...
|
||||
} @ args:
|
||||
|
||||
|
@ -47,6 +48,10 @@ stdenv.mkDerivation (args // {
|
|||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta.platforms = lib.attrByPath [ "meta" "platforms" ] graalvm.meta.platforms args;
|
||||
meta.mainProgram = lib.attrByPath [ "meta" "mainProgram" ] executable args;
|
||||
meta = {
|
||||
# default to graalvm's platforms
|
||||
platforms = graalvm.meta.platforms;
|
||||
# default to executable name
|
||||
mainProgram = executable;
|
||||
} // meta;
|
||||
})
|
||||
|
|
|
@ -18,7 +18,7 @@ buildGraalvmNativeImage rec {
|
|||
description = "A linter for Clojure code that sparks joy";
|
||||
homepage = "https://github.com/clj-kondo/clj-kondo";
|
||||
license = licenses.epl10;
|
||||
changelog = "https://github.com/clj-kondo/clj-kondo/blob/v${versiont}/CHANGELOG.md";
|
||||
changelog = "https://github.com/clj-kondo/clj-kondo/blob/v${version}/CHANGELOG.md";
|
||||
maintainers = with maintainers; [ jlesquembre bandresen thiagokokada ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue