2015-03-27 19:41:22 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-09-25 16:34:22 +01:00
|
|
|
name = "libfpx-1.3.1-7";
|
2015-03-27 19:41:22 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://imagemagick/delegates/${name}.tar.xz";
|
2016-09-25 16:34:22 +01:00
|
|
|
sha256 = "1s28mwb06w6dj0zl6ashpj8m1qiyadawzl7cvbw7dmj1w39ipghh";
|
2015-03-27 19:41:22 +00:00
|
|
|
};
|
|
|
|
|
2015-04-01 01:40:38 +01:00
|
|
|
# Darwin gets misdetected as Windows without this
|
|
|
|
NIX_CFLAGS_COMPILE = if stdenv.isDarwin then "-D__unix" else null;
|
|
|
|
|
|
|
|
# This dead code causes a duplicate symbol error in Clang so just remove it
|
2015-05-11 22:37:53 +01:00
|
|
|
postPatch = if stdenv.cc.isClang then ''
|
2015-04-01 01:40:38 +01:00
|
|
|
substituteInPlace jpeg/ejpeg.h --replace "int No_JPEG_Header_Flag" ""
|
|
|
|
'' else null;
|
|
|
|
|
2015-03-27 19:41:22 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.imagemagick.org;
|
|
|
|
description = "A library for manipulating FlashPIX images";
|
|
|
|
license = "Flashpix";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
|
|
|
};
|
|
|
|
}
|