2019-07-13 23:05:23 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, autoreconfHook
|
|
|
|
, bzip2
|
|
|
|
, cfitsio
|
|
|
|
, exiv2
|
|
|
|
, gettext
|
|
|
|
, gimp ? null
|
|
|
|
, gtk2
|
|
|
|
, gtkimageview
|
|
|
|
, lcms2
|
|
|
|
, lensfun
|
|
|
|
, libjpeg
|
|
|
|
, libtiff
|
|
|
|
, perl
|
|
|
|
, pkgconfig
|
|
|
|
, zlib
|
|
|
|
|
|
|
|
, withGimpPlugin ? true
|
|
|
|
}:
|
2009-10-19 13:50:45 +01:00
|
|
|
|
2018-04-29 01:59:26 +01:00
|
|
|
assert withGimpPlugin -> gimp != null;
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-07-13 23:05:23 +01:00
|
|
|
pname = "ufraw";
|
|
|
|
version = "unstable-2019-06-12";
|
2009-10-19 13:50:45 +01:00
|
|
|
|
2019-07-13 23:05:23 +01:00
|
|
|
# The original ufraw repo is unmaintained and broken;
|
|
|
|
# this is a fork that collects patches
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sergiomb2";
|
|
|
|
repo = "ufraw";
|
|
|
|
rev = "c65b4237dcb430fb274e4778afaf5df9a18e04e6";
|
|
|
|
sha256 = "02icn67bsinvgliy62qa6v7gmwgp2sh15jvm8iiz3c7g1h74f0b7";
|
2009-10-19 13:50:45 +01:00
|
|
|
};
|
|
|
|
|
2018-04-29 01:59:26 +01:00
|
|
|
outputs = [ "out" ] ++ stdenv.lib.optional withGimpPlugin "gimpPlugin";
|
|
|
|
|
2019-07-13 23:05:23 +01:00
|
|
|
nativeBuildInputs = [ autoconf automake autoreconfHook gettext perl pkgconfig ];
|
|
|
|
|
2018-04-29 01:59:26 +01:00
|
|
|
buildInputs = [
|
2019-07-13 23:05:23 +01:00
|
|
|
bzip2
|
|
|
|
cfitsio
|
|
|
|
exiv2
|
|
|
|
gtk2
|
|
|
|
gtkimageview
|
|
|
|
lcms2
|
|
|
|
lensfun
|
|
|
|
libjpeg
|
|
|
|
libtiff
|
|
|
|
zlib
|
2018-04-29 01:59:26 +01:00
|
|
|
] ++ stdenv.lib.optional withGimpPlugin gimp;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-contrast"
|
2019-07-13 23:05:23 +01:00
|
|
|
"--enable-dst-correction"
|
2018-04-29 01:59:26 +01:00
|
|
|
] ++ stdenv.lib.optional withGimpPlugin "--with-gimp";
|
|
|
|
|
|
|
|
postInstall = stdenv.lib.optionalString withGimpPlugin ''
|
|
|
|
moveToOutput "lib/gimp" "$gimpPlugin"
|
|
|
|
'';
|
2009-10-19 13:50:45 +01:00
|
|
|
|
2019-07-13 23:05:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/sergiomb2/ufraw";
|
2009-10-19 13:50:45 +01:00
|
|
|
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Utility to read and manipulate raw images from digital cameras";
|
2009-10-19 13:50:45 +01: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.
|
|
|
|
'';
|
|
|
|
|
2019-07-13 23:05:23 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2009-10-19 13:50:45 +01:00
|
|
|
|
2019-07-13 23:05:23 +01:00
|
|
|
maintainers = with maintainers; [ gloaming ];
|
|
|
|
platforms = with platforms; all;
|
2009-10-19 13:50:45 +01:00
|
|
|
};
|
|
|
|
}
|