Merge pull request #13533 from valeriangalliat/allow-go-reference

buildGoPackage: do not remove Go references if allowGoReferences is true
This commit is contained in:
Emery Hemingway 2016-03-07 09:05:27 +01:00
commit af39abcb9f

View file

@ -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" \