First Try
This commit is contained in:
19
apps/x86_64-darwin/build
Normal file
19
apps/x86_64-darwin/build
Normal file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
GREEN='\033[1;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
RED='\033[1;31m'
|
||||
NC='\033[0m'
|
||||
|
||||
SYSTEM_TYPE="x86_64-darwin"
|
||||
FLAKE_SYSTEM="darwinConfigurations.${SYSTEM_TYPE}.system"
|
||||
|
||||
export NIXPKGS_ALLOW_UNFREE=1
|
||||
|
||||
echo "${YELLOW}Starting build...${NC}"
|
||||
nix --extra-experimental-features 'nix-command flakes' build .#$FLAKE_SYSTEM $@
|
||||
|
||||
echo "${YELLOW}Cleaning up...${NC}"
|
||||
unlink ./result
|
||||
|
||||
echo "${GREEN}Switch to new generation complete!${NC}"
|
Reference in New Issue
Block a user