ok, for real darwin support, when darwin is remote
This commit is contained in:
parent
1aa4ba0eec
commit
840863af33
|
@ -35,8 +35,8 @@ function runner($msg) {
|
||||||
if ($body->build_default) {
|
if ($body->build_default) {
|
||||||
echo "building via nix-build .\n";
|
echo "building via nix-build .\n";
|
||||||
|
|
||||||
$cmd = 'NIX_PATH=nixpkgs=%s nix-build --option restrict-eval true --keep-going .';
|
$cmd = 'NIX_PATH=nixpkgs=%s nix-build --argstr system %s --option restrict-eval true --keep-going .';
|
||||||
$args = [$pname];
|
$args = [$pname, NIX_SYSTEM];
|
||||||
} else {
|
} else {
|
||||||
echo "building via nix-build . -A\n";
|
echo "building via nix-build . -A\n";
|
||||||
$attrs = array_intersperse(array_values((array)$body->attrs), '-A');
|
$attrs = array_intersperse(array_values((array)$body->attrs), '-A');
|
||||||
|
@ -44,8 +44,9 @@ function runner($msg) {
|
||||||
|
|
||||||
$fillers = implode(" ", array_fill(0, count($attrs), '%s'));
|
$fillers = implode(" ", array_fill(0, count($attrs), '%s'));
|
||||||
|
|
||||||
$cmd = 'NIX_PATH=nixpkgs=%s nix-build --option restrict-eval true --keep-going . ' . $fillers;
|
$cmd = 'NIX_PATH=nixpkgs=%s nix-build --argstr system %s --option restrict-eval true --keep-going . ' . $fillers;
|
||||||
$args = $attrs;
|
$args = $attrs;
|
||||||
|
array_unshift($args, NIX_SYSTEM);
|
||||||
array_unshift($args, $pname);
|
array_unshift($args, $pname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue