summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmily <vcs@emily.moe>2024-10-05 19:09:03 +0100
committerEmily <vcs@emily.moe>2024-11-07 23:05:26 +0000
commit07fea9d13a305f71365caae37f424b7270df6d5a (patch)
tree712d39eb334debc67ebe8a64c155c0600206d78b
parentdarwin.libpcap: remove code for macOS < 11 (diff)
downloadnixpkgs-07fea9d13a305f71365caae37f424b7270df6d5a.tar.gz
darwin.libresolv: remove code for macOS < 11
-rw-r--r--pkgs/os-specific/darwin/apple-source-releases/libresolv/package.nix15
1 files changed, 4 insertions, 11 deletions
diff --git a/pkgs/os-specific/darwin/apple-source-releases/libresolv/package.nix b/pkgs/os-specific/darwin/apple-source-releases/libresolv/package.nix
index 8bfdeb6bfa27..285ee3b616e3 100644
--- a/pkgs/os-specific/darwin/apple-source-releases/libresolv/package.nix
+++ b/pkgs/os-specific/darwin/apple-source-releases/libresolv/package.nix
@@ -1,15 +1,15 @@
{
lib,
- apple-sdk_11,
+ apple-sdk,
mkAppleDerivation,
}:
let
- configd = apple-sdk_11.sourceRelease "configd";
- Libinfo = apple-sdk_11.sourceRelease "Libinfo";
+ configd = apple-sdk.sourceRelease "configd";
+ Libinfo = apple-sdk.sourceRelease "Libinfo";
# `arpa/nameser_compat.h` is included in the Libc source release instead of libresolv.
- Libc = apple-sdk_11.sourceRelease "Libc";
+ Libc = apple-sdk.sourceRelease "Libc";
in
mkAppleDerivation {
releaseName = "libresolv";
@@ -27,13 +27,6 @@ mkAppleDerivation {
ln -s "$NIX_BUILD_TOP/$sourceRoot/nameser.h" "$sourceRoot/arpa/nameser.h"
'';
- # Remove unsupported availability annotations to support SDK without updated availability headers.
- postPatch = ''
- substituteInPlace dns_util.h \
- --replace-fail 'API_DEPRECATED_BEGIN("dns_util is deprecated.", macos(10.0, 13.0), ios(1.0, 16.0), watchos(1.0, 9.0), tvos(1.0, 16.0))' "" \
- --replace-fail API_DEPRECATED_END ""
- '';
-
env.NIX_CFLAGS_COMPILE = "-I${configd}/dnsinfo -I${Libinfo}/lookup.subproj";
postInstall = ''