diff --git a/.aliases/dev-root b/.aliases/dev-root index 626a30f..9f2dbca 100755 --- a/.aliases/dev-root +++ b/.aliases/dev-root @@ -5,5 +5,9 @@ set -eo pipefail SCRIPTDIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) cd "$SCRIPTDIR/.." -nix build .#packages.aarch64-darwin.gcroots -o .gcroots-aarch64-darwin -nix build .#packages.x86_64-darwin.gcroots -o .gcroots-x86_64-darwin +if [ "$(uname)" = "Darwin" ]; then + nix build .#packages.aarch64-darwin.gcroots -o .gcroots-aarch64-darwin + nix build .#packages.x86_64-darwin.gcroots -o .gcroots-x86_64-darwin +else + nix build .#gcroots -o .gcroots +fi