ok, for real darwin support, when darwin is remote

This commit is contained in:
Graham Christensen 2017-10-29 17:22:30 -04:00
parent 1aa4ba0eec
commit 840863af33
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -35,8 +35,8 @@ function runner($msg) {
if ($body->build_default) {
echo "building via nix-build .\n";
$cmd = 'NIX_PATH=nixpkgs=%s nix-build --option restrict-eval true --keep-going .';
$args = [$pname];
$cmd = 'NIX_PATH=nixpkgs=%s nix-build --argstr system %s --option restrict-eval true --keep-going .';
$args = [$pname, NIX_SYSTEM];
} else {
echo "building via nix-build . -A\n";
$attrs = array_intersperse(array_values((array)$body->attrs), '-A');
@ -44,8 +44,9 @@ function runner($msg) {
$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;
array_unshift($args, NIX_SYSTEM);
array_unshift($args, $pname);
}