3
0
Fork 0
forked from mirrors/nixpkgs

buildGoPackage: Support nativeBuildInputs

This commit is contained in:
William A. Kennington III 2015-08-05 16:22:36 -07:00
parent 80b87bf3cc
commit 2856d4701e

View file

@ -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 ''