mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 23:02:27 +00:00
Run nix-build inside a fresh bash login
This commit is contained in:
parent
bc647fd299
commit
61ea9e9867
@ -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 New Issue
Block a user