mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
Merge pull request #17083 from acowley/libgd-darwin
gd: cherry-pick a temporary patch for darwin
This commit is contained in:
commit
a71054c1aa
@ -8,6 +8,7 @@
|
||||
, libXpm ? null
|
||||
, fontconfig
|
||||
, freetype
|
||||
, fetchpatch, autoreconfHook, perl
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -19,7 +20,17 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1311g5mva2xlzqv3rjqjc4jjkn5lzls4skvr395h633zw1n7b7s8";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
# Address an incompatibility with Darwin's libtool
|
||||
patches = stdenv.lib.optional stdenv.isDarwin (fetchpatch {
|
||||
url = https://github.com/libgd/libgd/commit/502e4cd873c3b37b307b9f450ef827d40916c3d6.patch;
|
||||
sha256 = "0gawr2c4zr6cljnwzhdlxhz2mkbg0r5vzvr79dv6yf6fcj06awfs";
|
||||
});
|
||||
|
||||
# -pthread gets passed to clang, causing warnings
|
||||
configureFlags = stdenv.lib.optional stdenv.isDarwin "--enable-werror=no";
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ autoreconfHook perl ];
|
||||
buildInputs = [ zlib fontconfig freetype ];
|
||||
propagatedBuildInputs = [ libpng libjpeg libwebp libtiff libXpm ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user