giflib: fix build on darwin by patch submitted upstream
It broke by the update in 3605f128. The patch seems OK on a quick look.
This commit is contained in:
parent
c455adcc42
commit
ab77ea0bf2
@ -1,4 +1,4 @@
|
|||||||
{stdenv, fetchurl, xmlto, docbook_xml_dtd_412, docbook_xsl, libxml2 }:
|
{ stdenv, fetchurl, fetchpatch, xmlto, docbook_xml_dtd_412, docbook_xsl, libxml2 }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "giflib-5.2.1";
|
name = "giflib-5.2.1";
|
||||||
@ -7,6 +7,15 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1gbrg03z1b6rlrvjyc6d41bc8j1bsr7rm8206gb1apscyii5bnii";
|
sha256 = "1gbrg03z1b6rlrvjyc6d41bc8j1bsr7rm8206gb1apscyii5bnii";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = stdenv.lib.optional stdenv.hostPlatform.isDarwin
|
||||||
|
(fetchpatch {
|
||||||
|
# https://sourceforge.net/p/giflib/bugs/133/
|
||||||
|
name = "darwin-soname.patch";
|
||||||
|
url = "https://sourceforge.net/p/giflib/bugs/_discuss/thread/4e811ad29b/c323/attachment/Makefile.patch";
|
||||||
|
sha256 = "12afkqnlkl3n1hywwgx8sqnhp3bz0c5qrwcv8j9hifw1lmfhv67r";
|
||||||
|
extraPrefix = "./";
|
||||||
|
});
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace Makefile \
|
substituteInPlace Makefile \
|
||||||
--replace 'PREFIX = /usr/local' 'PREFIX = ${builtins.placeholder "out"}'
|
--replace 'PREFIX = /usr/local' 'PREFIX = ${builtins.placeholder "out"}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user