mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-11-05 16:03:18 +00:00
Build only in appvm directory
This commit is contained in:
parent
2fef367e45
commit
90a87a0219
4
appvm.sh
4
appvm.sh
|
@ -1,4 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
APPVM_PATH=$(dirname $(realpath $0))
|
||||||
|
cd ${APPVM_PATH}
|
||||||
|
|
||||||
if [[ "$1" == "build" && "$2" != "" ]]; then
|
if [[ "$1" == "build" && "$2" != "" ]]; then
|
||||||
NIX_PATH=$NIX_PATH:. nix-build '<nixpkgs/nixos>' -A config.system.build.vm -I nixos-config=nix/${2}.nix || exit 1
|
NIX_PATH=$NIX_PATH:. nix-build '<nixpkgs/nixos>' -A config.system.build.vm -I nixos-config=nix/${2}.nix || exit 1
|
||||||
NIX_SYSTEM=$(realpath result/system)
|
NIX_SYSTEM=$(realpath result/system)
|
||||||
|
|
Loading…
Reference in a new issue