1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 23:20:55 +00:00

Merge pull request #152384 from thiagokokada/fix-meta-on-build-graalvm-native-image

buildGraalvmNativeImage: fix meta
This commit is contained in:
Jörg Thalheim 2021-12-28 07:24:56 +00:00 committed by GitHub
commit 2c1898ff34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View file

@ -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;
})

View file

@ -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 ];
};
}