mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 22:42:41 +01:00
Run nix-build inside a fresh bash login
This commit is contained in:
parent
163d93125e
commit
c4f349d572
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…
Add table
Add a link
Reference in a new issue