physfs_2: fix darwin build

This commit is contained in:
Stéphan Kochen 2021-05-18 11:44:16 +02:00
parent a1d1f086c7
commit 32cf9f8121
2 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,4 @@
{ lib, stdenv, fetchurl, cmake, doxygen, darwin
, zlib }:
{ lib, stdenv, fetchurl, cmake, doxygen, zlib, Foundation, Carbon }:
let
generic = version: sha256:
@ -15,7 +14,7 @@ let
nativeBuildInputs = [ cmake doxygen ];
buildInputs = [ zlib ]
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Foundation ];
++ lib.optionals stdenv.isDarwin [ Foundation Carbon ];
patchPhase = ''
sed s,-Werror,, -i CMakeLists.txt

View file

@ -17217,7 +17217,9 @@ in
pe-parse = callPackage ../development/libraries/pe-parse { };
inherit (callPackage ../development/libraries/physfs { })
inherit (callPackage ../development/libraries/physfs {
inherit (darwin.apple_sdk.frameworks) Foundation Carbon;
})
physfs_2
physfs;