git.iko.soy/typeable/nixpkgs
on master help sign in
libfpx: fix build with gcc6
commit402e6ac0893d59c3e86c38f86ac82a114881950d authorSamuel Leathers <sam@appliedtrust.com> dateMon 4 Sep 2017, 09:23 (9 years ago) parent84ec7ef
1 file changed+8−1
pkgs/development/libraries/libfpx/default.nix+8−1
pkgs/development/libraries/libfpx/default.nix+8−1
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl }:
1+{ stdenv, fetchurl, fetchpatch }:
22
33stdenv.mkDerivation rec {
44 name = "libfpx-1.3.1-7";
@@ -11,6 +11,13 @@ stdenv.mkDerivation rec {
1111 # Darwin gets misdetected as Windows without this
1212 NIX_CFLAGS_COMPILE = if stdenv.isDarwin then "-D__unix" else null;
1313
14+ patches = [
15+ (fetchpatch {
16+ url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/libfpx/files/libfpx-1.3.1_p6-gcc6.patch?id=f28a947813dbc0a1fd1a8d4a712d58a64c48ca01";
17+ sha256 = "032y8110zgnkdhkdq3745zk53am1x34d912rai8q70k3sskyq22p";
18+ })
19+ ];
20+
1421 # This dead code causes a duplicate symbol error in Clang so just remove it
1522 postPatch = if stdenv.cc.isClang then ''
1623 substituteInPlace jpeg/ejpeg.h --replace "int No_JPEG_Header_Flag" ""