aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/common.sh4
1 files changed, 2 insertions, 2 deletions
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"