mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
acf8579307
This way it is easier to differentiate between phases running in the `buildGraalvmProduct` and `buildGraalvm`.
23 lines
388 B
Nix
23 lines
388 B
Nix
{ lib
|
|
, stdenv
|
|
, graalvmCEPackages
|
|
, javaVersion
|
|
, src
|
|
, version
|
|
}:
|
|
|
|
graalvmCEPackages.buildGraalvmProduct rec {
|
|
inherit src javaVersion version;
|
|
product = "llvm-installable-svm";
|
|
|
|
postUnpack = ''
|
|
ln -s $out/languages/llvm/native/lib/*.so $out/lib
|
|
'';
|
|
|
|
# TODO: improve this test
|
|
graalvmPhases.installCheckPhase = ''
|
|
echo "Testing llvm"
|
|
$out/bin/lli --help
|
|
'';
|
|
}
|