Skip to content
Snippets Groups Projects
Commit bb65460f authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

Make dev-shell script work on Darwin

parent de8be7c3
No related branches found
No related tags found
No related merge requests found
...@@ -6,11 +6,12 @@ fi ...@@ -6,11 +6,12 @@ fi
s=$(type -p nix-shell) s=$(type -p nix-shell)
exec $s release.nix -A tarball --command " exec $s release.nix -A tarball --command "
export NIX_REMOTE=daemon unset http_proxy
export NIX_REMOTE=$NIX_REMOTE
export NIX_PATH='$NIX_PATH' export NIX_PATH='$NIX_PATH'
export NIX_BUILD_SHELL=$(type -p bash) export NIX_BUILD_SHELL=$(type -p bash)
export c=\$configureFlags export c=\$configureFlags
exec $s release.nix -A build.x86_64-linux --exclude tarball --command ' exec $s release.nix -A build.$(if [ $(uname -s) = Darwin ]; then echo x86_64-darwin; else echo x86_64-linux; fi) --exclude tarball --command '
configureFlags+=\" \$c --prefix=$(pwd)/inst --sysconfdir=$(pwd)/inst/etc\" configureFlags+=\" \$c --prefix=$(pwd)/inst --sysconfdir=$(pwd)/inst/etc\"
return return
'" \ '" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment