mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
buildGoPackage: add shellHook attribute
This commit is contained in:
parent
7f882b53a0
commit
a8a5bf0496
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue