2016-09-11 21:24:51 +00:00
|
|
|
{ fetchurl, stdenv, pkgconfig, gtk2, gettext, bzip2, zlib
|
2018-04-29 00:59:26 +00:00
|
|
|
, withGimpPlugin ? true, gimp ? null
|
2016-01-05 09:59:31 +00:00
|
|
|
, libjpeg, libtiff, cfitsio, exiv2, lcms2, gtkimageview, lensfun }:
|
2009-10-19 12:50:45 +00:00
|
|
|
|
2018-04-29 00:59:26 +00:00
|
|
|
assert withGimpPlugin -> gimp != null;
|
|
|
|
|
2009-10-19 12:50:45 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-01-05 09:59:31 +00:00
|
|
|
name = "ufraw-0.22";
|
2009-10-19 12:50:45 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-11-21 22:30:00 +00:00
|
|
|
# XXX: These guys appear to mutate uploaded tarballs!
|
2009-10-19 12:50:45 +00:00
|
|
|
url = "mirror://sourceforge/ufraw/${name}.tar.gz";
|
2016-01-05 09:59:31 +00:00
|
|
|
sha256 = "0pm216pg0vr44gwz9vcvq3fsf8r5iayljhf5nis2mnw7wn6d5azp";
|
2009-10-19 12:50:45 +00:00
|
|
|
};
|
|
|
|
|
2018-04-29 00:59:26 +00:00
|
|
|
outputs = [ "out" ] ++ stdenv.lib.optional withGimpPlugin "gimpPlugin";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig gettext ];
|
|
|
|
buildInputs = [
|
|
|
|
gtk2 gtkimageview bzip2 zlib
|
|
|
|
libjpeg libtiff cfitsio exiv2 lcms2 lensfun
|
|
|
|
] ++ stdenv.lib.optional withGimpPlugin gimp;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-extras"
|
|
|
|
"--enable-dst-correction"
|
|
|
|
"--enable-contrast"
|
|
|
|
] ++ stdenv.lib.optional withGimpPlugin "--with-gimp";
|
|
|
|
|
|
|
|
postInstall = stdenv.lib.optionalString withGimpPlugin ''
|
|
|
|
moveToOutput "lib/gimp" "$gimpPlugin"
|
|
|
|
'';
|
2009-10-19 12:50:45 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://ufraw.sourceforge.net/;
|
|
|
|
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Utility to read and manipulate raw images from digital cameras";
|
2009-10-19 12:50:45 +00:00
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' The Unidentified Flying Raw (UFRaw) is a utility to read and
|
|
|
|
manipulate raw images from digital cameras. It can be used on its
|
|
|
|
own or as a Gimp plug-in. It reads raw images using Dave Coffin's
|
|
|
|
raw conversion utility - DCRaw. UFRaw supports color management
|
|
|
|
workflow based on Little CMS, allowing the user to apply ICC color
|
|
|
|
profiles. For Nikon users UFRaw has the advantage that it can read
|
|
|
|
the camera's tone curves.
|
|
|
|
'';
|
|
|
|
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2009-10-19 12:50:45 +00:00
|
|
|
|
2013-08-16 21:44:33 +00:00
|
|
|
maintainers = [ ];
|
2018-04-30 22:47:47 +00:00
|
|
|
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # needs GTK+
|
2009-10-19 12:50:45 +00:00
|
|
|
};
|
|
|
|
}
|