Merge pull request #108651 from holymonson/mark-broken

darwin: explicitly mark broken for failed building apple packages
This commit is contained in:
Dmitry Kalinkin
2021-01-16 11:14:24 -05:00
committed by GitHub
2 changed files with 11 additions and 3 deletions

View File

@@ -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;
};
}

View File

@@ -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;
};
}