nixpkgs-suyu/pkgs/development/libraries/libfpx/default.nix
Eric Seidel 662a6b1ca6 remove all references to stdenv.cc.cc.is{GNU,Clang}
use the new `stdenv.cc.is{GNU,Clang}` instead, which will always be
defined.
2015-05-11 14:44:50 -07:00

26 lines
816 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "libfpx-1.3.1-4";
src = fetchurl {
url = "mirror://imagemagick/delegates/${name}.tar.xz";
sha256 = "0pbvxbp30zqjpc0q71qbl15cb47py74c4d6a8qv1mqa6j81pb233";
};
# 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
postPatch = if stdenv.cc.isClang then ''
substituteInPlace jpeg/ejpeg.h --replace "int No_JPEG_Header_Flag" ""
'' else null;
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 ];
};
}