nixpkgs/pkgs/applications/graphics/ufraw/default.nix

55 lines
1.8 KiB
Nix
Raw Normal View History

{ 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 }:
2018-04-29 00:59:26 +00:00
assert withGimpPlugin -> gimp != null;
stdenv.mkDerivation rec {
2016-01-05 09:59:31 +00:00
name = "ufraw-0.22";
src = fetchurl {
# XXX: These guys appear to mutate uploaded tarballs!
url = "mirror://sourceforge/ufraw/${name}.tar.gz";
2016-01-05 09:59:31 +00:00
sha256 = "0pm216pg0vr44gwz9vcvq3fsf8r5iayljhf5nis2mnw7wn6d5azp";
};
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"
'';
meta = {
homepage = http://ufraw.sourceforge.net/;
description = "Utility to read and manipulate raw images from digital cameras";
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.
'';
license = stdenv.lib.licenses.gpl2Plus;
2013-08-16 21:44:33 +00:00
maintainers = [ ];
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # needs GTK+
};
}