builder: Build internal packages for host plattform
This commit is contained in:
parent
9c1bde84d3
commit
d404767bec
1 changed files with 4 additions and 2 deletions
|
@ -8,6 +8,7 @@
|
|||
, jq
|
||||
, cacert
|
||||
, pkgs
|
||||
, pkgsBuildBuild
|
||||
}:
|
||||
let
|
||||
|
||||
|
@ -18,9 +19,10 @@ let
|
|||
# Internal only build-time attributes
|
||||
internal =
|
||||
let
|
||||
mkInternalPkg = name: src: pkgs.runCommand "gomod2nix-${name}"
|
||||
mkInternalPkg = name: src: pkgsBuildBuild.runCommand "gomod2nix-${name}"
|
||||
{
|
||||
nativeBuildInputs = [ pkgs.go ];
|
||||
inherit (pkgsBuildBuild.go) GOOS GOARCH;
|
||||
nativeBuildInputs = [ pkgsBuildBuild.go ];
|
||||
} ''
|
||||
export HOME=$(mktemp -d)
|
||||
cp ${src} src.go
|
||||
|
|
Loading…
Reference in a new issue