summary refs log tree commit diff
path: root/pkgs/development/go-modules
diff options
context:
space:
mode:
authorAntoine Eiche <lewo@abesis.fr>2018-07-17 13:09:11 +0200
committerAntoine Eiche <lewo@abesis.fr>2018-07-17 13:13:57 +0200
commita8a5bf049653617e8913bfbe65ac7eb44dc5e597 (patch)
treed100657983554ee6a050fa296318a4a58d3d78d5 /pkgs/development/go-modules
parent7f882b53a08dd3bdd2c873a5e158eaa6a8fce0ef (diff)
downloadnixpkgs-a8a5bf049653617e8913bfbe65ac7eb44dc5e597.tar
nixpkgs-a8a5bf049653617e8913bfbe65ac7eb44dc5e597.tar.gz
nixpkgs-a8a5bf049653617e8913bfbe65ac7eb44dc5e597.tar.bz2
nixpkgs-a8a5bf049653617e8913bfbe65ac7eb44dc5e597.tar.lz
nixpkgs-a8a5bf049653617e8913bfbe65ac7eb44dc5e597.tar.xz
nixpkgs-a8a5bf049653617e8913bfbe65ac7eb44dc5e597.tar.zst
nixpkgs-a8a5bf049653617e8913bfbe65ac7eb44dc5e597.zip
buildGoPackage: add shellHook attribute
Diffstat (limited to 'pkgs/development/go-modules')
-rw-r--r--pkgs/development/go-modules/generic/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix
index bd047da4c91..bb9aaeb00cf 100644
--- a/pkgs/development/go-modules/generic/default.nix
+++ b/pkgs/development/go-modules/generic/default.nix
@@ -2,6 +2,7 @@
 , removeReferencesTo, fetchFromGitHub }:
 
 { name, buildInputs ? [], nativeBuildInputs ? [], passthru ? {}, preFixup ? ""
+, shellHook ? ""
 
 # We want parallel builds by default
 , enableParallelBuilding ? true
@@ -198,7 +199,7 @@ go.stdenv.mkDerivation (
   ''
   ) goPath) + ''
     export GOPATH=${lib.concatStringsSep ":" ( ["$d"] ++ ["$GOPATH"] ++ ["$PWD"] ++ extraSrcPaths)}
-  '';
+  '' + shellHook;
 
   disallowedReferences = lib.optional (!allowGoReference) go
     ++ lib.optional (!dontRenameImports) govers;