Skip to content

Commit

Permalink
ci: start fiddling with overwriting nix's HOME=/homeless-shelter befo…
Browse files Browse the repository at this point in the history
…re npm installs of agent-js-monorepo
  • Loading branch information
gobengo committed Sep 2, 2020
1 parent 7765aa9 commit efe4e2a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions nix/agent-js/agent-js-monorepo.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,34 @@
, agentJsMonorepoTools ? import ./monorepo-tools.nix { inherit pkgs system; }
}:
let
npmEnvironmentBuildInput = (pkgs.stdenv.mkDerivation {
name="agent-js-monorepo-env";
src=agent-js-monorepo-src;
# Without this unsetting HOME, npm might try to write to default HOME=/homeless-shelter
HOME="";
installPhase = ''
mkdir -p $out
'';
});
monorepo = pkgs.napalm.buildPackage agent-js-monorepo-src {
name = "agent-js-monorepo";
propagatedBuildInputs = [
(agentJsMonorepoTools agent-js-monorepo-src)
npmEnvironmentBuildInput
];
buildInputs = [
npmEnvironmentBuildInput
];
outputs = [
"out"
"lib"
"agent"
"bootstrap"
];
# HOME = "";
npmCommands = [
"npm install"
];
installPhase = ''
# $out: Everything!
mkdir -p $out
Expand Down

0 comments on commit efe4e2a

Please sign in to comment.