Run nix-build inside a fresh bash login
This commit is contained in:
parent
bc647fd299
commit
61ea9e9867
1 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -eux
|
||||
|
||||
cleanup() {
|
||||
PLIST="/Library/LaunchDaemons/org.nixos.nix-daemon.plist"
|
||||
if sudo launchctl list | grep -q nix-daemon; then
|
||||
|
@ -47,7 +49,10 @@ verify
|
|||
|
||||
|
||||
(
|
||||
nix-build ./release.nix -A binaryTarball.x86_64-darwin
|
||||
(
|
||||
echo "cd $(pwd)"
|
||||
echo nix-build ./release.nix -A binaryTarball.x86_64-darwin
|
||||
) | bash -l
|
||||
cp ./result/nix-*.tar.bz2 $scratch/nix.tar.bz2
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue