buildGraalvmNativeImage: fix meta
This commit is contained in:
parent
7efd936e4f
commit
24f9dcd06b
|
@ -21,6 +21,7 @@
|
||||||
, graalvmXmx ? "-J-Xmx6g"
|
, graalvmXmx ? "-J-Xmx6g"
|
||||||
# The GraalVM to use
|
# The GraalVM to use
|
||||||
, graalvm ? graalvmCEPackages.graalvm11-ce
|
, graalvm ? graalvmCEPackages.graalvm11-ce
|
||||||
|
, meta ? { }
|
||||||
, ...
|
, ...
|
||||||
} @ args:
|
} @ args:
|
||||||
|
|
||||||
|
@ -47,6 +48,10 @@ stdenv.mkDerivation (args // {
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta.platforms = lib.attrByPath [ "meta" "platforms" ] graalvm.meta.platforms args;
|
meta = {
|
||||||
meta.mainProgram = lib.attrByPath [ "meta" "mainProgram" ] executable args;
|
# default to graalvm's platforms
|
||||||
|
platforms = graalvm.meta.platforms;
|
||||||
|
# default to executable name
|
||||||
|
mainProgram = executable;
|
||||||
|
} // meta;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue