From 76c87385524263bb9e9c1b80f5e4bafe715c3725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 11 Feb 2010 15:08:05 +0000 Subject: [PATCH] Adding the GAP gimp plugin, and making nix-env recurse into the gimp plugins attribute set. svn path=/nixpkgs/trunk/; revision=19936 --- .../graphics/gimp/plugins/default.nix | 23 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/graphics/gimp/plugins/default.nix b/pkgs/applications/graphics/gimp/plugins/default.nix index 396b1b78e6d..e72828d4dfb 100644 --- a/pkgs/applications/graphics/gimp/plugins/default.nix +++ b/pkgs/applications/graphics/gimp/plugins/default.nix @@ -46,6 +46,29 @@ let in rec { + gap = pluginDerivation { + /* menu: + Video + */ + name = "gap-2.6.0"; + buildInputs = [ gimp pkgconfig glib pkgs.intltool gimp.gtk ] ++ gimp.buildInputs; + src = fetchurl { + url = ftp://ftp.gimp.org/pub/gimp/plug-ins/v2.6/gap/gimp-gap-2.6.0.tar.bz2; + sha256 = "1jic7ixcmsn4kx2cn32nc5087rk6g8xsrz022xy11yfmgvhzb0ql"; + }; + patchPhase = '' + sed -e 's,^\(GIMP_PLUGIN_DIR=\).*,\1'"$out/${gimp.name}-plugins", \ + -e 's,^\(GIMP_DATA_DIR=\).*,\1'"$out/share/${gimp.name}", -i configure + ''; + meta = { + 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" ]; + }; + }; + fourier = pluginDerivation { /* menu: Filters/Generic/FFT Forward diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b186f166aa1..8c29914146b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7255,7 +7255,9 @@ let inherit (gnome) gtk libart_lgpl; }; - gimpPlugins = import ../applications/graphics/gimp/plugins { inherit pkgs gimp; }; + gimpPlugins = recurseIntoAttrs (import ../applications/graphics/gimp/plugins { + inherit pkgs gimp; + }); gitAndTools = recurseIntoAttrs (import ../applications/version-management/git-and-tools { inherit pkgs;