buildGoPackage: remove go version from name (#21111)

As a user installing the program it's not interesting what go version it
was compiled against. Not more interesting than any other potential
dependencies. It also makes it harder to install or update the package.
This commit is contained in:
zimbatm 2016-12-13 11:35:15 +00:00 committed by GitHub
parent 50466c2d4f
commit cbdc94f2b7

View File

@ -69,7 +69,7 @@ in
go.stdenv.mkDerivation ( go.stdenv.mkDerivation (
(builtins.removeAttrs args [ "goPackageAliases" "disabled" ]) // { (builtins.removeAttrs args [ "goPackageAliases" "disabled" ]) // {
name = "go${go.meta.branch}-${name}"; inherit name;
nativeBuildInputs = [ go parallel ] nativeBuildInputs = [ go parallel ]
++ (lib.optional (!dontRenameImports) govers) ++ nativeBuildInputs; ++ (lib.optional (!dontRenameImports) govers) ++ nativeBuildInputs;
buildInputs = [ go ] ++ buildInputs; buildInputs = [ go ] ++ buildInputs;