ufraw: build gimp plugin
This commit is contained in:
parent
882682827a
commit
63a234c4a7
|
@ -179,32 +179,7 @@ rec {
|
||||||
installPhase = "installPlugins gmic_gimp";
|
installPhase = "installPlugins gmic_gimp";
|
||||||
};
|
};
|
||||||
|
|
||||||
# this is more than a gimp plugin !
|
ufraw = pkgs.ufraw.gimpPlugin;
|
||||||
# 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
|
|
||||||
";
|
|
||||||
};
|
|
||||||
|
|
||||||
gimplensfun = pluginDerivation rec {
|
gimplensfun = pluginDerivation rec {
|
||||||
version = "0.2.4";
|
version = "0.2.4";
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
{ fetchurl, stdenv, pkgconfig, gtk2, gettext, bzip2, zlib
|
{ fetchurl, stdenv, pkgconfig, gtk2, gettext, bzip2, zlib
|
||||||
|
, withGimpPlugin ? true, gimp ? null
|
||||||
, libjpeg, libtiff, cfitsio, exiv2, lcms2, gtkimageview, lensfun }:
|
, libjpeg, libtiff, cfitsio, exiv2, lcms2, gtkimageview, lensfun }:
|
||||||
|
|
||||||
|
assert withGimpPlugin -> gimp != null;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ufraw-0.22";
|
name = "ufraw-0.22";
|
||||||
|
|
||||||
|
@ -10,10 +13,23 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0pm216pg0vr44gwz9vcvq3fsf8r5iayljhf5nis2mnw7wn6d5azp";
|
sha256 = "0pm216pg0vr44gwz9vcvq3fsf8r5iayljhf5nis2mnw7wn6d5azp";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs =
|
outputs = [ "out" ] ++ stdenv.lib.optional withGimpPlugin "gimpPlugin";
|
||||||
[ pkgconfig gtk2 gtkimageview gettext bzip2 zlib
|
|
||||||
libjpeg libtiff cfitsio exiv2 lcms2 lensfun
|
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 = {
|
meta = {
|
||||||
homepage = http://ufraw.sourceforge.net/;
|
homepage = http://ufraw.sourceforge.net/;
|
||||||
|
|
Loading…
Reference in New Issue