From 2dbccc394a4964a2a3badd192184b6d35dd63336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 23 Mar 2023 12:31:51 +0100 Subject: Rework how I pass packages to the NixOS --- tools/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/common.sh b/tools/common.sh index 3f99479..fc4d99e 100644 --- a/tools/common.sh +++ b/tools/common.sh @@ -79,7 +79,7 @@ result() { # Get system of the device device_system() { - nix eval --raw ".#nixosConfigurations.$1.config.nixpkgs.system" + nix eval --raw ".#nixosConfigurations.$1.config.nixpkgs.hostPlatform.system" } build_system() { @@ -102,7 +102,7 @@ build() { local toplevel="config.system.build.toplevel" local bsystem="$(build_system)" if [ "$bsystem" != "$(device_system "$device")" ]; then - toplevel="config.system.build.cross.$bsystem.$toplevel" + toplevel="buildPlatform.$bsystem.$toplevel" fi stage "Building system for device: $device" -- cgit v1.2.3