Skip to content

Commit e3a3489

Browse files
committed
Fix for older versions of nixpkgs
Older versions of nixpkgs have `pkgs.darwin.apple_sdk.sdk` instead of `pkgs.apple-sdk`.
1 parent fd0056d commit e3a3489

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/configuration-nix.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ in addPackageKeys {
199199
# for whatever reason nixpkgs 24.11 defines x86_64-darwin
200200
# to be sdk-10.12.2, and aarch64-darwin to be sdk-11.
201201
# nixpkgs 25.05 will drop sdk-10.12, and unify aarch64 and x86 at last.
202-
packages.network.components.library.libs = lib.mkIf (pkgs.stdenv.hostPlatform.isDarwin && lib.versionOlder pkgs.apple-sdk.version "11") [
202+
packages.network.components.library.libs = lib.mkIf (pkgs.stdenv.hostPlatform.isDarwin && lib.versionOlder (pkgs.apple-sdk or pkgs.darwin.apple_sdk.sdk).version "11") [
203203
pkgs.apple-sdk_11
204204
(pkgs.darwinMinVersionHook "11.0")
205205
];

0 commit comments

Comments
 (0)