mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
ab3eeabfed
Likewise for propagatedBuildNativeInputs, etc. "buildNativeInputs" sounds like an imperative rather than a noun phrase.
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";
|
|
};
|
|
|
|
nativeBuildInputs = [ 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";
|
|
};
|
|
}
|