From edb4f759ea9f018bc9f79070cdd426e22b9f8f18 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Sat, 25 Dec 2021 03:04:00 +0100 Subject: util/liveiso: Ensure compatible NixOS channel is used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/60373 Tested-by: build bot (Jenkins) Reviewed-by: Michael Niewöhner --- util/liveiso/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 '' \ -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 -- cgit v1.2.3