mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
22 lines
364 B
Nix
22 lines
364 B
Nix
{ lib
|
|
, stdenv
|
|
, graalvmCEPackages
|
|
, graalvm-ce
|
|
, javaVersion
|
|
, src
|
|
, version
|
|
}:
|
|
|
|
graalvmCEPackages.buildGraalvmProduct rec {
|
|
inherit src javaVersion version;
|
|
product = "nodejs-installable-svm";
|
|
|
|
extraNativeBuildInputs = [ graalvm-ce ];
|
|
|
|
# TODO: improve test
|
|
graalvmPhases.installCheckPhase = ''
|
|
echo "Testing NodeJS"
|
|
$out/bin/npx --help
|
|
'';
|
|
}
|