Merge pull request #207577 from Gabriella439/gabriella/fix_macos-builder_script

darwin.builder: Fix `system` for `install-credentials`
This commit is contained in:
Robert Hensing 2022-12-24 17:28:08 +01:00 committed by GitHub
commit 4a6d66b322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ in
# This installCredentials script is written so that it's as easy as
# possible for a user to audit before confirming the `sudo`
installCredentials = pkgs.writeShellScript "install-credentials" ''
installCredentials = hostPkgs.writeShellScript "install-credentials" ''
KEYS="''${1}"
INSTALL=${hostPkgs.coreutils}/bin/install
"''${INSTALL}" -g nixbld -m 600 "''${KEYS}/${user}_${keyType}" ${privateKey}