mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
darwin: add mkStub for deprecating frameworks
This commit is contained in:
parent
8fae28553a
commit
d1c2539523
14
pkgs/os-specific/darwin/apple-sdk/mk-stub.nix
Normal file
14
pkgs/os-specific/darwin/apple-sdk/mk-stub.nix
Normal 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;
|
||||
}
|
@ -32,6 +32,8 @@ let
|
||||
pkg
|
||||
) (old.extraBuildInputs or [ ]);
|
||||
});
|
||||
|
||||
mkStub = pkgs.callPackage ../os-specific/darwin/apple-sdk/mk-stub.nix { };
|
||||
in
|
||||
|
||||
makeScopeWithSplicing' {
|
||||
|
Loading…
Reference in New Issue
Block a user