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 /pkgs/development/tools/gotools/default.nix | |
parent | 2ba2b0cf23e4d0f7fdcf97ac7900c349da0d3fbc (diff) | |
download | nixlib-1f54afb299f693fe2c9a42b97890e65e8cb89d8a.tar nixlib-1f54afb299f693fe2c9a42b97890e65e8cb89d8a.tar.gz nixlib-1f54afb299f693fe2c9a42b97890e65e8cb89d8a.tar.bz2 nixlib-1f54afb299f693fe2c9a42b97890e65e8cb89d8a.tar.lz nixlib-1f54afb299f693fe2c9a42b97890e65e8cb89d8a.tar.xz nixlib-1f54afb299f693fe2c9a42b97890e65e8cb89d8a.tar.zst nixlib-1f54afb299f693fe2c9a42b97890e65e8cb89d8a.zip |
gotools: fix the path in the setup-hook
Diffstat (limited to 'pkgs/development/tools/gotools/default.nix')
-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 59416f031346..430f17bfb5b0 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 |