diff options
Diffstat (limited to 'pkgs/applications/graphics/gimp/plugins/default.nix')
-rw-r--r-- | pkgs/applications/graphics/gimp/plugins/default.nix | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/pkgs/applications/graphics/gimp/plugins/default.nix b/pkgs/applications/graphics/gimp/plugins/default.nix index 5f43abfcfc1e..ea638de7925d 100644 --- a/pkgs/applications/graphics/gimp/plugins/default.nix +++ b/pkgs/applications/graphics/gimp/plugins/default.nix @@ -59,12 +59,12 @@ rec { sed -e 's,^\(GIMP_PLUGIN_DIR=\).*,\1'"$out/${gimp.name}-plugins", \ -e 's,^\(GIMP_DATA_DIR=\).*,\1'"$out/share/${gimp.name}", -i configure ''; - meta = { + meta = with stdenv.lib; { description = "The GIMP Animation Package"; homepage = http://www.gimp.org; # The main code is given in GPLv3, but it has ffmpeg in it, and I think ffmpeg license # falls inside "free". - license = [ "GPLv3" "free" ]; + license = with licenses; [ gpl3 free ]; }; }; @@ -159,24 +159,25 @@ rec { }; gmic = - let - imagemagick = pkgs.imagemagickBig; # maybe the non big version is enough? - in pluginDerivation rec { - name = "gmic-1.5.7.2"; - buildInputs = [imagemagick pkgconfig pkgs.fftw gimp] ++ gimp.nativeBuildInputs; + pluginDerivation rec { + name = "gmic-1.6.5.0"; + + buildInputs = [pkgconfig pkgs.fftw pkgs.opencv gimp] ++ gimp.nativeBuildInputs; + src = fetchurl { - url = mirror://sourceforge/gmic/gmic_1.5.7.2.tar.gz; - sha256 = "1cpbxb3p2c8bcv2cbr150whapzjc7w09i3jza0z9x3xj8c0vdyv1"; + url = http://gmic.eu/files/source/gmic_1.6.5.0.tar.gz; + sha256 = "1vb6zm5zpqfnzxjvb9yfvczaqacm55rf010ib0yk9f28b17qrjgb"; }; - preConfigure = '' - export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${imagemagick}/include/ImageMagick" - ''; + sourceRoot = "${name}/src"; - buildPhase = "make gimp"; + + buildFlags = "gimp"; + installPhase = "installPlugins gmic_gimp"; + meta = { description = "script language for image processing which comes with its open-source interpreter"; - homepage = http://gmic.sourceforge.net/repository.shtml; + homepage = http://gmic.eu/gimp.shtml; license = stdenv.lib.licenses.cecill20; /* The purpose of this Free Software license agreement is to grant users |