3
0
Fork 0
forked from mirrors/nixpkgs

ufraw: build gimp plugin

This commit is contained in:
Jan Tojnar 2018-04-29 02:59:26 +02:00
parent 882682827a
commit 63a234c4a7
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4
2 changed files with 21 additions and 30 deletions

View file

@ -179,32 +179,7 @@ rec {
installPhase = "installPlugins gmic_gimp";
};
# this is more than a gimp plugin !
# either load the raw image with gimp (and the import dialog will popup)
# or use the binary
ufraw = pluginDerivation rec {
name = "ufraw-0.19.2";
buildInputs = with pkgs; [ gtkimageview lcms ];
# --enable-mime - install mime files, see README for more information
# --enable-extras - build extra (dcraw, nikon-curve) executables
# --enable-dst-correction - enable DST correction for file timestamps.
# --enable-contrast - enable the contrast setting option.
# --enable-interp-none: enable 'None' interpolation (mostly for debugging).
# --with-lensfun: use the lensfun library - experimental feature, read this before using it.
# --with-prefix=PREFIX - use also PREFIX as an input prefix for the build
# --with-dosprefix=PREFIX - PREFIX in the the prefix in dos format (needed only for ms-window
configureFlags = "--enable-extras --enable-dst-correction --enable-contrast";
src = fetchurl {
url = "mirror://sourceforge/ufraw/${name}.tar.gz";
sha256 = "1lxba7pb3vcsq94dwapg9bk9mb3ww6r3pvvcyb0ah5gh2sgzxgkk";
};
installPhase = "
installPlugins ufraw-gimp
mkdir -p $out/bin
cp ufraw $out/bin
";
};
ufraw = pkgs.ufraw.gimpPlugin;
gimplensfun = pluginDerivation rec {
version = "0.2.4";

View file

@ -1,6 +1,9 @@
{ fetchurl, stdenv, pkgconfig, gtk2, gettext, bzip2, zlib
, withGimpPlugin ? true, gimp ? null
, libjpeg, libtiff, cfitsio, exiv2, lcms2, gtkimageview, lensfun }:
assert withGimpPlugin -> gimp != null;
stdenv.mkDerivation rec {
name = "ufraw-0.22";
@ -10,10 +13,23 @@ stdenv.mkDerivation rec {
sha256 = "0pm216pg0vr44gwz9vcvq3fsf8r5iayljhf5nis2mnw7wn6d5azp";
};
buildInputs =
[ pkgconfig gtk2 gtkimageview gettext bzip2 zlib
libjpeg libtiff cfitsio exiv2 lcms2 lensfun
];
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/;