diff --git a/pkgs/applications/graphics/gimp/plugins/default.nix b/pkgs/applications/graphics/gimp/plugins/default.nix index 8ece9ba2453c..ea638de7925d 100644 --- a/pkgs/applications/graphics/gimp/plugins/default.nix +++ b/pkgs/applications/graphics/gimp/plugins/default.nix @@ -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