mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 09:02:46 +00:00
b0d12859fc
svn path=/nixpkgs/trunk/; revision=32756
36 lines
892 B
Nix
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";
|
|
};
|
|
}
|