mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
21f17d69f6
Build-tested on x86_64 Linux & Mac.
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ stdenv, fetchurl, libjpeg, libexif, libungif, libtiff, libpng, libwebp, libdrm
|
|
, pkgconfig, freetype, fontconfig, which, imagemagick, curl, sane-backends
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "fbida-2.11";
|
|
|
|
src = fetchurl {
|
|
url = "http://dl.bytesex.org/releases/fbida/${name}.tar.gz";
|
|
sha256 = "00x1lppb66b0gvp6sqs7zjgnlfh80lnkwvsm15ifzvlss3b67akw";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig which ];
|
|
buildInputs =
|
|
[ libexif libjpeg libpng libungif freetype fontconfig libtiff libwebp
|
|
imagemagick curl sane-backends libdrm
|
|
];
|
|
|
|
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 = with stdenv.lib; {
|
|
description = "Image viewing and manipulation programs";
|
|
homepage = https://www.kraxel.org/blog/linux/fbida/;
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ pSub ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|