mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
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 New Issue
Block a user