Run nix-build inside a fresh bash login

This commit is contained in:
Graham Christensen 2017-07-12 17:10:14 -04:00
parent bc647fd299
commit 61ea9e9867
No known key found for this signature in database
GPG Key ID: 06121D366FE9435C

View File

@ -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
)