don't use a specific nodejs version but use nixpkgs default

This commit is contained in:
778a69cd 2024-03-01 15:06:46 +01:00
parent 9894330bff
commit 0cec96ee41

View file

@ -55,9 +55,6 @@
}; };
mobilizon-frontend = mobilizon-frontend =
let
nodejs = pkgs.nodejs-18_x;
in
napalm.legacyPackages."${system}".buildPackage napalm.legacyPackages."${system}".buildPackage
(filter { (filter {
root = ./.; root = ./.;
@ -70,7 +67,7 @@
] ++ unrelatedDirs; ] ++ unrelatedDirs;
}) })
{ {
inherit nodejs; inherit (pkgs) nodejs;
nativeBuildInputs = [ pkgs.imagemagick ]; nativeBuildInputs = [ pkgs.imagemagick ];
npmCommands = [ "npm install" "npm run build" ]; npmCommands = [ "npm install" "npm run build" ];
# Keep this in sync with the content of ./patches/ # Keep this in sync with the content of ./patches/
@ -104,7 +101,7 @@
mix2nix mix2nix
cmake cmake
imagemagick imagemagick
nodejs-18_x nodejs
]; ];
}; };
}); });