Skip to content

Commit

Permalink
Fixed npm install when running an IHP app on latest nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Feb 3, 2024
1 parent c4ef680 commit df77216
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion NixSupport/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit df77216

Please sign in to comment.