From df77216f4c0dea916bbe52ba45dc5c7294e24678 Mon Sep 17 00:00:00 2001 From: Marc Scholten Date: Sat, 3 Feb 2024 15:01:56 +0100 Subject: [PATCH] Fixed npm install when running an IHP app on latest nixpkgs --- NixSupport/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/NixSupport/default.nix b/NixSupport/default.nix index 75c1feee5..5a0fa1975 100644 --- a/NixSupport/default.nix +++ b/NixSupport/default.nix @@ -96,9 +96,12 @@ in src = pkgs.nix-gitignore.gitignoreSource [] projectPath; buildInputs = builtins.concatLists [ [allHaskellPackages] allNativePackages ]; nativeBuildInputs = builtins.concatLists [ - [ pkgs.makeWrapper ] + [ pkgs.makeWrapper + pkgs.cacert # Needed for npm install to work from within the IHP build process + ] (if includeDevTools then [(pkgs.postgresql_13.withPackages postgresExtensions)] else []) ]; shellHook = "eval $(egrep ^export ${allHaskellPackages}/bin/ghc)"; enableParallelBuilding = true; + impureEnvVars = pkgs.lib.fetchers.proxyImpureEnvVars; # Needed for npm install to work from within the IHP build process }