mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
nufraw: init at 0.43-3
`nufraw` is used to manipulate raw images. `nufraw-thumbnailer` is used to generate thumbnails for raw images. relates #108444
This commit is contained in:
parent
b9cbe0f8e7
commit
e02bf0737b
@ -144,6 +144,7 @@ in
|
||||
"/share/kservicetypes5"
|
||||
"/share/kxmlgui5"
|
||||
"/share/systemd"
|
||||
"/share/thumbnailers"
|
||||
];
|
||||
|
||||
system.path = pkgs.buildEnv {
|
||||
|
71
pkgs/applications/graphics/nufraw/default.nix
Normal file
71
pkgs/applications/graphics/nufraw/default.nix
Normal file
@ -0,0 +1,71 @@
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, lib
|
||||
|
||||
, autoreconfHook
|
||||
, bzip2
|
||||
, cfitsio
|
||||
, exiv2
|
||||
, gettext
|
||||
, gtk2
|
||||
, gtkimageview
|
||||
, lcms2
|
||||
, lensfun
|
||||
, libjpeg
|
||||
, libtiff
|
||||
, perl
|
||||
, pkg-config
|
||||
, zlib
|
||||
|
||||
, addThumbnailer ? false
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nufraw";
|
||||
version = "0.43-3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/nufraw/nufraw-${version}.tar.gz";
|
||||
sha256 = "0b63qvw9r8kaqw36bk3a9zwxc41h8fr6498indkw4glrj0awqz9c";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook gettext perl pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
bzip2
|
||||
cfitsio
|
||||
exiv2
|
||||
gtk2
|
||||
gtkimageview
|
||||
lcms2
|
||||
lensfun
|
||||
libjpeg
|
||||
libtiff
|
||||
zlib
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-contrast"
|
||||
"--enable-dst-correction"
|
||||
];
|
||||
|
||||
postInstall = lib.optionalString addThumbnailer ''
|
||||
mkdir -p $out/share/thumbnailers
|
||||
substituteAll ${./nufraw.thumbnailer} $out/share/thumbnailers/${pname}.thumbnailer
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://nufraw.sourceforge.io/";
|
||||
description = "Utility to read and manipulate raw images from digital cameras";
|
||||
longDescription =
|
||||
''
|
||||
A new version of the popular raw digital images manipulator ufraw.
|
||||
Forks from the version 0.23 of ufraw (that's why the first nufraw version is the 0.24).
|
||||
Nufraw offers the same features (gimp plugin, batch, ecc) and the same quality of
|
||||
ufraw in a brand new improved user interface.
|
||||
'';
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ asbachb ];
|
||||
platforms = [ "x86_64-linux" "i686-linux" ];
|
||||
};
|
||||
}
|
4
pkgs/applications/graphics/nufraw/nufraw.thumbnailer
Normal file
4
pkgs/applications/graphics/nufraw/nufraw.thumbnailer
Normal file
@ -0,0 +1,4 @@
|
||||
[Thumbnailer Entry]
|
||||
TryExec=@out@/bin/nufraw-batch
|
||||
Exec=@out@/bin/nufraw-batch --silent --size %s --out-type=png --noexif --output=%o --embedded-image %i
|
||||
MimeType=image/x-canon-cr2;image/x-canon-crw;image/x-minolta-mrw;image/x-nikon-nef;image/x-pentax-pef;image/x-panasonic-rw2;image/x-panasonic-raw2;image/x-samsung-srw;image/x-olympus-orf;image/x-sony-arw
|
@ -23504,6 +23504,12 @@ in
|
||||
|
||||
muchsync = callPackage ../applications/networking/mailreaders/notmuch/muchsync.nix { };
|
||||
|
||||
nufraw = callPackage ../applications/graphics/nufraw/default.nix { };
|
||||
|
||||
nufraw-thumbnailer = callPackage ../applications/graphics/nufraw/default.nix {
|
||||
addThumbnailer = true;
|
||||
};
|
||||
|
||||
notmuch-addrlookup = callPackage ../applications/networking/mailreaders/notmuch-addrlookup { };
|
||||
|
||||
nova-filters = callPackage ../applications/audio/nova-filters { };
|
||||
|
Loading…
Reference in New Issue
Block a user