diff options
author | Wael M. Nasreddine <wael.nasreddine@gmail.com> | 2020-01-20 21:09:11 -0800 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2020-02-10 20:17:19 +0100 |
commit | 1f54afb299f693fe2c9a42b97890e65e8cb89d8a (patch) | |
tree | cbadbeb931be9fd33b92dfe3eac98101d0e16f62 | |
parent | 2ba2b0cf23e4d0f7fdcf97ac7900c349da0d3fbc (diff) |
gotools: fix the path in the setup-hook
-rw-r--r-- | pkgs/development/tools/gotools/default.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/development/tools/gotools/default.nix b/pkgs/development/tools/gotools/default.nix index 59416f0313465..430f17bfb5b00 100644 --- a/pkgs/development/tools/gotools/default.nix +++ b/pkgs/development/tools/gotools/default.nix @@ -40,9 +40,8 @@ buildGoModule rec { # Set GOTOOLDIR for derivations adding this to buildInputs postInstall = '' mkdir -p $out/nix-support - substituteAll ${../../go-modules/tools/setup-hook.sh} $out/nix-support/setup-hook.tmp - cat $out/nix-support/setup-hook.tmp >> $out/nix-support/setup-hook - rm $out/nix-support/setup-hook.tmp + substitute ${../../go-modules/tools/setup-hook.sh} $out/nix-support/setup-hook \ + --subst-var-by bin $out ''; # Do not copy this without a good reason for enabling |