forked from mirrors/nixpkgs
buildGoPackage: Support nativeBuildInputs
This commit is contained in:
parent
80b87bf3cc
commit
2856d4701e
|
@ -1,6 +1,6 @@
|
|||
{ go, govers, lib }:
|
||||
|
||||
{ name, buildInputs ? [], passthru ? {}
|
||||
{ name, buildInputs ? [], nativeBuildInputs ? [], passthru ? {}
|
||||
|
||||
# Disabled flag
|
||||
, disabled ? false
|
||||
|
@ -28,7 +28,8 @@ go.stdenv.mkDerivation (
|
|||
(builtins.removeAttrs args [ "goPackageAliases" "disabled" ]) // {
|
||||
|
||||
name = "go${go.meta.branch}-${name}";
|
||||
nativeBuildInputs = [ go ] ++ (lib.optional (!dontRenameImports) govers);
|
||||
nativeBuildInputs = [ go ]
|
||||
++ (lib.optional (!dontRenameImports) govers) ++ nativeBuildInputs;
|
||||
buildInputs = [ go ] ++ buildInputs;
|
||||
|
||||
configurePhase = args.configurePhase or ''
|
||||
|
|
Loading…
Reference in a new issue