From 5f6e6516e0235719879509a29bed5cafc7921fa2 Mon Sep 17 00:00:00 2001 From: Monson Shao Date: Thu, 7 Jan 2021 19:51:42 +0800 Subject: [PATCH 1/2] darwin.hfs: mark broken --- .../darwin/apple-source-releases/hfs/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/os-specific/darwin/apple-source-releases/hfs/default.nix b/pkgs/os-specific/darwin/apple-source-releases/hfs/default.nix index ab294b143d39..58f6fb8d7ab3 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/hfs/default.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/hfs/default.nix @@ -5,4 +5,10 @@ appleDerivation { mkdir -p $out/include/hfs cp core/*.h $out/include/hfs ''; + + meta = { + # Seems nobody wants its binary, so we didn't implement building. + broken = !headersOnly; + platforms = lib.platforms.darwin; + }; } From b9be1501fe615b8a1504465505b91d8e721f3d58 Mon Sep 17 00:00:00 2001 From: Monson Shao Date: Thu, 7 Jan 2021 19:49:50 +0800 Subject: [PATCH 2/2] darwin.libauto: mark broken and drop stdenv.lib --- .../darwin/apple-source-releases/libauto/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/darwin/apple-source-releases/libauto/default.nix b/pkgs/os-specific/darwin/apple-source-releases/libauto/default.nix index b2ef3374ca27..8a551dcc892c 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/libauto/default.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/libauto/default.nix @@ -1,8 +1,8 @@ -{ stdenv, appleDerivation, libdispatch, Libsystem }: +{ lib, stdenv, appleDerivation, libdispatch, Libsystem }: appleDerivation { # these are included in the pure libc - buildInputs = stdenv.lib.optionals stdenv.cc.nativeLibc [ libdispatch Libsystem ]; + buildInputs = lib.optionals stdenv.cc.nativeLibc [ libdispatch Libsystem ]; buildPhase = '' cp ${./auto_dtrace.h} ./auto_dtrace.h @@ -79,6 +79,8 @@ appleDerivation { ''; meta = { - platforms = stdenv.lib.platforms.darwin; + # libauto is only used by objc4/pure.nix , but objc4 is now using the impure approach, so we don't bother to fix this. + broken = true; + platforms = lib.platforms.darwin; }; }