2016-04-04 17:05:01 +01:00
|
|
|
{ stdenv, fetchurl, libjpeg, libexif, libungif, libtiff, libpng, libwebp, libdrm
|
2016-01-03 02:31:38 +00:00
|
|
|
, pkgconfig, freetype, fontconfig, which, imagemagick, curl, sane-backends
|
2011-01-16 16:28:08 +00:00
|
|
|
}:
|
2009-08-04 08:14:43 +01:00
|
|
|
|
2011-01-16 16:28:08 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-04-04 17:05:01 +01:00
|
|
|
name = "fbida-2.11";
|
2011-01-16 16:28:08 +00:00
|
|
|
|
2009-08-04 08:14:43 +01:00
|
|
|
src = fetchurl {
|
2011-01-16 16:28:08 +00:00
|
|
|
url = "http://dl.bytesex.org/releases/fbida/${name}.tar.gz";
|
2016-04-04 17:05:01 +01:00
|
|
|
sha256 = "00x1lppb66b0gvp6sqs7zjgnlfh80lnkwvsm15ifzvlss3b67akw";
|
2009-08-04 08:14:43 +01:00
|
|
|
};
|
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig which ];
|
2011-01-16 16:28:08 +00:00
|
|
|
buildInputs =
|
2012-03-04 08:53:46 +00:00
|
|
|
[ libexif libjpeg libpng libungif freetype fontconfig libtiff libwebp
|
2016-04-04 17:05:01 +01:00
|
|
|
imagemagick curl sane-backends libdrm
|
2012-03-04 08:53:46 +00:00
|
|
|
];
|
2011-01-16 16:28:08 +00:00
|
|
|
|
|
|
|
makeFlags = [ "prefix=$(out)" "verbose=yes" ];
|
|
|
|
|
2012-03-04 08:53:46 +00:00
|
|
|
patchPhase =
|
|
|
|
''
|
|
|
|
sed -e 's@ cpp\>@ gcc -E -@' -i GNUmakefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
configurePhase = "make config $makeFlags";
|
|
|
|
|
2012-01-07 15:03:56 +00:00
|
|
|
crossAttrs = {
|
|
|
|
makeFlags = makeFlags ++ [ "CC=${stdenv.cross.config}-gcc" "STRIP="];
|
|
|
|
};
|
|
|
|
|
2015-05-31 14:54:28 +01:00
|
|
|
meta = with stdenv.lib; {
|
2011-01-16 16:28:08 +00:00
|
|
|
description = "Image viewing and manipulation programs";
|
2015-05-31 14:54:28 +01:00
|
|
|
homepage = https://www.kraxel.org/blog/linux/fbida/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with platforms; linux;
|
2009-08-04 08:14:43 +01:00
|
|
|
};
|
|
|
|
}
|