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
|
, jq
|
||||||
, cacert
|
, cacert
|
||||||
, pkgs
|
, pkgs
|
||||||
|
, pkgsBuildBuild
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
|
||||||
|
@ -18,9 +19,10 @@ let
|
||||||
# Internal only build-time attributes
|
# Internal only build-time attributes
|
||||||
internal =
|
internal =
|
||||||
let
|
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)
|
export HOME=$(mktemp -d)
|
||||||
cp ${src} src.go
|
cp ${src} src.go
|
||||||
|
|
Loading…
Reference in a new issue