21 , addThumbnailer ? false
24 stdenv.mkDerivation rec {
29 url = "mirror://sourceforge/nufraw/nufraw-${version}.tar.gz";
30 sha256 = "0b63qvw9r8kaqw36bk3a9zwxc41h8fr6498indkw4glrj0awqz9c";
33 nativeBuildInputs = [ autoreconfHook gettext perl pkg-config ];
50 "--enable-dst-correction"
53 env.NIX_CFLAGS_COMPILE = "-Wno-narrowing";
55 postInstall = lib.optionalString addThumbnailer ''
56 mkdir -p $out/share/thumbnailers
57 substituteAll ${./nufraw.thumbnailer} $out/share/thumbnailers/${pname}.thumbnailer
61 # Fixes an upstream issue where headers with templates were included in an extern-C scope
62 # which caused the build to fail
64 name = "0001-nufraw-glib-2.70.patch";
65 url = "https://gitlab.archlinux.org/archlinux/packaging/packages/gimp-nufraw/-/raw/3405bc864752dbd04f2d182a21b4108d6cc3aa95/0001-nufraw-glib-2.70.patch";
66 hash = "sha256-XgzgjikWTcqymHa7bKmruNZaeb2/lpN19HXoRUt5rTk=";
68 ] ++ lib.optionals (lib.versionAtLeast exiv2.version "0.28") [
70 name = "0002-exiv2-error.patch";
71 url = "https://gitlab.archlinux.org/archlinux/packaging/packages/gimp-nufraw/-/raw/3405bc864752dbd04f2d182a21b4108d6cc3aa95/0002-exiv2-error.patch";
72 hash = "sha256-40/Wwk1sWiaIWp077EYgP8jFO4k1cvf30heRDMYJw3M=";
77 homepage = "https://nufraw.sourceforge.io/";
78 description = "Utility to read and manipulate raw images from digital cameras";
81 A new version of the popular raw digital images manipulator ufraw.
82 Forks from the version 0.23 of ufraw (that's why the first nufraw version is the 0.24).
83 Nufraw offers the same features (gimp plugin, batch, ecc) and the same quality of
84 ufraw in a brand new improved user interface.
86 license = licenses.gpl2Plus;
87 maintainers = with maintainers; [ asbachb ];
88 platforms = platforms.linux;