diff options
author | Valérian Galliat <val@codejam.info> | 2016-02-28 00:12:55 -0500 |
---|---|---|
committer | Valérian Galliat <val@codejam.info> | 2016-02-28 22:42:58 -0500 |
commit | 37d1dcd12d1367a9b0be23947ffe8a0539c2f2b7 (patch) | |
tree | b44f191b3d6a9bc44ab012168097575e5c0352fd /pkgs/development/go-modules | |
parent | bc4dbca2b3dcfb95629319447173183dadd2a1c2 (diff) | |
download | nixlib-37d1dcd12d1367a9b0be23947ffe8a0539c2f2b7.tar nixlib-37d1dcd12d1367a9b0be23947ffe8a0539c2f2b7.tar.gz nixlib-37d1dcd12d1367a9b0be23947ffe8a0539c2f2b7.tar.bz2 nixlib-37d1dcd12d1367a9b0be23947ffe8a0539c2f2b7.tar.lz nixlib-37d1dcd12d1367a9b0be23947ffe8a0539c2f2b7.tar.xz nixlib-37d1dcd12d1367a9b0be23947ffe8a0539c2f2b7.tar.zst nixlib-37d1dcd12d1367a9b0be23947ffe8a0539c2f2b7.zip |
buildGoPackage: do not remove Go references if allowGoReferences is true
allowGoReference was only checked for disallowedReferences definition, but the fixup of all output binaries removing references to the compiler did not take this setting into account.
Diffstat (limited to 'pkgs/development/go-modules')
-rw-r--r-- | pkgs/development/go-modules/generic/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index 260e8d66c58a..15b729173c6a 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/generic/default.nix @@ -30,7 +30,7 @@ if disabled then throw "${name} not supported for go ${go.meta.branch}" else let args = lib.filterAttrs (name: _: name != "extraSrcs") args'; - removeReferences = [ go ]; + removeReferences = [ ] ++ lib.optional (!allowGoReference) go; removeExpr = refs: lib.flip lib.concatMapStrings refs (ref: '' | sed "s,${ref},$(echo "${ref}" | sed "s,$NIX_STORE/[^-]*,$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee,"),g" \ |