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 }: { go, govers, lib }:
{ name, buildInputs ? [], passthru ? {} { name, buildInputs ? [], nativeBuildInputs ? [], passthru ? {}
# Disabled flag # Disabled flag
, disabled ? false , disabled ? false
@ -28,7 +28,8 @@ go.stdenv.mkDerivation (
(builtins.removeAttrs args [ "goPackageAliases" "disabled" ]) // { (builtins.removeAttrs args [ "goPackageAliases" "disabled" ]) // {
name = "go${go.meta.branch}-${name}"; name = "go${go.meta.branch}-${name}";
nativeBuildInputs = [ go ] ++ (lib.optional (!dontRenameImports) govers); nativeBuildInputs = [ go ]
++ (lib.optional (!dontRenameImports) govers) ++ nativeBuildInputs;
buildInputs = [ go ] ++ buildInputs; buildInputs = [ go ] ++ buildInputs;
configurePhase = args.configurePhase or '' configurePhase = args.configurePhase or ''