gotools: Fix build and update to 2015-08-19
This commit is contained in:
@@ -16,6 +16,10 @@
|
||||
|
||||
, dontRenameImports ? false
|
||||
|
||||
# Do not enable this without good reason
|
||||
# IE: programs coupled with the compiler
|
||||
, allowGoReference ? false
|
||||
|
||||
, meta ? {}, ... } @ args':
|
||||
|
||||
if disabled then throw "${name} not supported for go ${go.meta.branch}" else
|
||||
@@ -161,7 +165,8 @@ go.stdenv.mkDerivation (
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
disallowedReferences = [ go ] ++ lib.optional (!dontRenameImports) govers;
|
||||
disallowedReferences = lib.optional (!allowGoReference) go
|
||||
++ lib.optional (!dontRenameImports) govers;
|
||||
|
||||
passthru = passthru // lib.optionalAttrs (goPackageAliases != []) { inherit goPackageAliases; };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user