Skip to content

Commit 7e4a6c2

Browse files
authoredMar 4, 2025
Fix for older versions of nixpkgs (#2326)
* Fix for older versions of nixpkgs Older versions of nixpkgs have `pkgs.darwin.apple_sdk.sdk` instead of `pkgs.apple-sdk`. * Not sure where `pkgs.apple-sdk_11` is for older nixpkgs.
1 parent fd0056d commit 7e4a6c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎modules/configuration-nix.nix

+1-1
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 && pkgs ? apple-sdk && lib.versionOlder pkgs.apple-sdk.version "11") [
203203
pkgs.apple-sdk_11
204204
(pkgs.darwinMinVersionHook "11.0")
205205
];

0 commit comments

Comments
 (0)
Please sign in to comment.