1
0
dotfiles/bin/build
Jip J. Dekker 4363d1a7d4 Initial Commit
Add flake template from dustinlyons/nixos-config
2023-12-11 17:35:39 +11:00

23 lines
345 B
Bash
Executable File

#!/bin/sh -e
VERSION=1.0
export args=$@
# Navigate to the directory of this script
cd $(dirname $(readlink -f $0))
cd ..
SYSTEM=$(uname)
build() {
if [ $SYSTEM == "Darwin" ]; then
./bin/darwin-build $args
elif [ $SYSTEM == "Linux" ]; then
./bin/nixos-build $args
else
echo "Unknown platform"
fi
}
build