mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
72 lines
1.5 KiB
Nix
72 lines
1.5 KiB
Nix
{ 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 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" ];
|
|
};
|
|
}
|