summaryrefslogtreecommitdiff
path: root/util/liveiso
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-25 03:04:00 +0100
committerFelix Singer <felixsinger@posteo.net>2021-12-26 12:06:37 +0000
commitedb4f759ea9f018bc9f79070cdd426e22b9f8f18 (patch)
tree68e8b818459b8f2091e24af08966215ab293903d /util/liveiso
parent5e4232d389d15d5db6952de7dadab1db427ae8d3 (diff)
util/liveiso: Ensure compatible NixOS channel is used
Config options and package names might change from channel to channel. Thus, don't let nix-build depend on the locally configured NixOS channel, but instead let `nixpkgs` point to a specific channel to ensure that always a compatible channel is used. For now, let `nixpkgs` point to NixOS 21.11, which is currently the latest stable release. This needs to be updated after a new release. Change-Id: Ia77c34f93f0e2c3d351ae229830adfce75a56ae4 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60373 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Diffstat (limited to 'util/liveiso')
-rwxr-xr-xutil/liveiso/build.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/liveiso/build.sh b/util/liveiso/build.sh
index ee63bc538a..702ace88cc 100755
--- a/util/liveiso/build.sh
+++ b/util/liveiso/build.sh
@@ -10,4 +10,5 @@ fi
nix-build '<nixpkgs/nixos>' \
-A config.system.build.isoImage \
- -I nixos-config=$config
+ -I nixos-config=$config \
+ -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-21.11.tar.gz