nixpkgs/pkgs/applications/graphics/fbida/default.nix
Yury G. Kudryashov b0d12859fc fbida-2.09 (builds with libpng-1.5)
svn path=/nixpkgs/trunk/; revision=32756
2012-03-04 08:53:46 +00:00

36 lines
892 B
Nix

{ stdenv, fetchurl, libjpeg, libexif, libungif, libtiff, libpng, libwebp
, pkgconfig, freetype, fontconfig, which, imagemagick, curl, saneBackends
}:
stdenv.mkDerivation rec {
name = "fbida-2.09";
src = fetchurl {
url = "http://dl.bytesex.org/releases/fbida/${name}.tar.gz";
sha256 = "1riia87v5nsx858xnlvc7sspr1p36adjqrdch1255ikr5xbv6h6x";
};
buildNativeInputs = [ pkgconfig which ];
buildInputs =
[ libexif libjpeg libpng libungif freetype fontconfig libtiff libwebp
imagemagick curl saneBackends
];
makeFlags = [ "prefix=$(out)" "verbose=yes" ];
patchPhase =
''
sed -e 's@ cpp\>@ gcc -E -@' -i GNUmakefile
'';
configurePhase = "make config $makeFlags";
crossAttrs = {
makeFlags = makeFlags ++ [ "CC=${stdenv.cross.config}-gcc" "STRIP="];
};
meta = {
description = "Image viewing and manipulation programs";
};
}