1
0
mirror of https://github.com/samueldr/wip-pinebook-pro.git synced 2024-06-02 11:03:34 +02:00
wip-pinebook-pro/build.sh
Samuel Dionne-Riel 42e59d8105 Adds (incomplete) system image build
This includes the proper kernel, but does nothing more.
2020-01-06 15:22:39 -05:00

14 lines
337 B
Bash
Executable File

#!/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 "$@"