darwin: add mkStub for deprecating frameworks

This commit is contained in:
Randy Eckenrode 2024-09-29 18:25:05 -04:00
parent 8fae28553a
commit d1c2539523
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,14 @@
{ stdenvNoCC }:
version: pname:
stdenvNoCC.mkDerivation {
inherit pname version;
buildCommand = ''
mkdir -p "$out"
echo "Individual frameworks have been deprecated. See the stdenv documentation for how to use `apple-sdk`" \
> "$out/README"
'';
passthru.isDarwinCompatStub = true;
}

View File

@ -32,6 +32,8 @@ let
pkg
) (old.extraBuildInputs or [ ]);
});
mkStub = pkgs.callPackage ../os-specific/darwin/apple-sdk/mk-stub.nix { };
in
makeScopeWithSplicing' {