mirror of
https://github.com/samueldr/wip-pinebook-pro.git
synced 2024-11-05 18:49:41 +01:00
14 lines
337 B
Bash
14 lines
337 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -e
|
||
|
set -u
|
||
|
PS4=" $ "
|
||
|
|
||
|
# Ugh, I would have liked to do it through a simpler `nix-build`, but as this
|
||
|
# needs to set `NIX_PATH` for use of `<nixpkgs/*>` imports, this is the better
|
||
|
# way to go.
|
||
|
|
||
|
set -x
|
||
|
exec env -i NIX_PATH="nixpkgs=channel:nixos-19.09" nix-build \
|
||
|
system.nix -A config.system.build.sdImage "$@"
|