From 5b0cffeec2973101432f7a6ce5644e73ca661618 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 3 Feb 2025 20:24:31 +0000 Subject: [PATCH] nixpkgs: fix undefined variable in assertion This got mangled in the backport a year and a half ago. Fixes: e25eeff158ceb415079e38f6e78a470c5664fa2f --- modules/nix/nixpkgs.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nix/nixpkgs.nix b/modules/nix/nixpkgs.nix index ee999971..511d718c 100644 --- a/modules/nix/nixpkgs.nix +++ b/modules/nix/nixpkgs.nix @@ -284,7 +284,7 @@ in pkgsSystem = finalPkgs.stdenv.targetPlatform.system; in { assertion = cfg.constructedByUs -> !hasPlatform -> cfg.system == pkgsSystem; - message = "The nix-darwin nixpkgs.pkgs option was set to a Nixpkgs invocation that compiles to target system ${pkgsSystem} but nix-darwin was configured for system ${darwinExpectedSystem} via nix-darwin option nixpkgs.system. The nix-darwin system settings must match the Nixpkgs target system."; + message = "The nix-darwin nixpkgs.pkgs option was set to a Nixpkgs invocation that compiles to target system ${pkgsSystem} but nix-darwin was configured for system ${config.nixpkgs.system} via nix-darwin option nixpkgs.system. The nix-darwin system settings must match the Nixpkgs target system."; } ) {