From 3ee20ba064fcee93aefb256f809dc1fb611914ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 30 May 2020 19:53:09 +0100 Subject: [PATCH] pulp: add purescript to PATH --- pkgs/development/node-packages/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/node-packages/default.nix b/pkgs/development/node-packages/default.nix index 4bc2b56b3abf..7ff3db8894ec 100644 --- a/pkgs/development/node-packages/default.nix +++ b/pkgs/development/node-packages/default.nix @@ -76,7 +76,7 @@ let }; insect = super.insect.override (drv: { - nativeBuildInputs = drv.nativeBuildInputs or [] ++ [ pkgs.psc-package pkgs.purescript self.pulp ]; + nativeBuildInputs = drv.nativeBuildInputs or [] ++ [ pkgs.psc-package self.pulp ]; }); node-inspector = super.node-inspector.override { @@ -117,6 +117,13 @@ let pulp = super.pulp.override { # tries to install purescript npmFlags = "--ignore-scripts"; + + nativeBuildInputs = [ pkgs.makeWrapper ]; + postInstall = '' + wrapProgram "$out/bin/pulp" --suffix PATH : ${stdenv.lib.makeBinPath [ + pkgs.purescript + ]} + ''; }; ssb-server = super.ssb-server.override {