From d284d13f1cc6766d246c1cc19cf7bbb97e9ea36d Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 5 Apr 2026 19:46:47 -0400 Subject: [PATCH] darwin.libresolv: migrate to use darwin.sourceRelease --- .../darwin/by-name/li/libresolv/package.nix | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/pkgs/os-specific/darwin/by-name/li/libresolv/package.nix b/pkgs/os-specific/darwin/by-name/li/libresolv/package.nix index 56c38bcece53..1ff3f3b70474 100644 --- a/pkgs/os-specific/darwin/by-name/li/libresolv/package.nix +++ b/pkgs/os-specific/darwin/by-name/li/libresolv/package.nix @@ -1,19 +1,25 @@ { lib, - apple-sdk, + fetchFromGitHub, mkAppleDerivation, + sourceRelease, stdenvNoCC, }: let - configd = apple-sdk.sourceRelease "configd"; - dyld = apple-sdk.sourceRelease "dyld"; - Libinfo = apple-sdk.sourceRelease "Libinfo"; - Libnotify = apple-sdk.sourceRelease "Libnotify"; - xnu = apple-sdk.sourceRelease "xnu"; + configd = sourceRelease "configd"; + # TODO(reckenrode): Use `sourceRelease` after migration has been merged and all releases updated to the same version. + dyld = fetchFromGitHub { + owner = "apple-oss-distributions"; + repo = "dyld"; + rev = "dyld-1160.6"; + hash = "sha256-6P/Da6xP19vmaCROoYv9pl7DaW3/U+qZBJT8PD33bn0="; + }; + Libinfo = sourceRelease "Libinfo"; + Libnotify = sourceRelease "Libnotify"; # `arpa/nameser_compat.h` is included in the Libc source release instead of libresolv. - Libc = apple-sdk.sourceRelease "Libc"; + Libc = sourceRelease "Libc"; privateHeaders = stdenvNoCC.mkDerivation { name = "libresolv-deps-private-headers";