3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #33341 from LnL7/darwin-brotli

brotli: fix darwin build
This commit is contained in:
Daiderd Jordan 2018-01-05 19:48:48 +01:00 committed by GitHub
commit a7ef0c03d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
sha256 = "1rpg16zpr7h6vs7qr6npmqhyw4w5nkp24iq70s4dryn77m0r4mcv";
};
buildInputs = [ cmake ];
nativeBuildInputs = [ cmake ];
outputs = [ "out" "dev" "lib" ];
@ -21,6 +21,10 @@ stdenv.mkDerivation rec {
# and the wonderful bazel BUILD file is already there (yay case-insensitivity?)
prePatch = "rm BUILD";
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
cmakeFlagsArray+=("-DCMAKE_INSTALL_NAME_DIR=$lib/lib")
'';
meta = with stdenv.lib; {
inherit (src.meta) homepage;