[Nix-dev] [PATCH] Move gtkLibs to top-level namespace

Yury G. Kudryashov urkud.urkud at gmail.com
Sat Jan 28 15:40:20 CET 2012


From: "Yury G. Kudryashov" <urkud.urkud at gmail.com>

Earlier there was a strict correspondence between versions of gtkLibs.* but now
upstream moves to gtk-3.x, and there is no simple rule anymore. Thus it is
easier to override particular libs on a case-by-case basis than using gtkLibs2x.
---
 pkgs/top-level/all-packages.nix |   37 +++++++++++++++++--------------------
 1 files changed, 17 insertions(+), 20 deletions(-)

diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 671a9fb..30dba9b 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -3019,6 +3019,8 @@ let
   gnumake380 = callPackage ../development/tools/build-managers/gnumake-3.80 { };
   gnumake381 = callPackage ../development/tools/build-managers/gnumake/3.81.nix { };
 
+  gob2 = callPackage ../development/tools/misc/gob2 { };
+
   gradle = callPackage ../development/tools/build-managers/gradle { };
 
   gperf = callPackage ../development/tools/misc/gperf { };
@@ -3688,35 +3690,30 @@ let
 
   gtkmathview = callPackage ../development/libraries/gtkmathview { };
 
-  gtkLibs = recurseIntoAttrs pkgs.gtkLibs224;
+  gtkLibs = {
+    inherit (pkgs) glib glibmm atk atkmm cairo pango pangomm gdk_pixbuf gtk
+      gtkmm;
+  };
 
-  inherit (pkgs.gtkLibs) glib gtk pango cairo gdk_pixbuf;
+  glib = callPackage ../development/libraries/glib/2.28.x.nix { };
 
-  gtkLibs224 = let callPackage = pkgs.newScope pkgs.gtkLibs224; in {
+  glibmm = callPackage ../development/libraries/glibmm/2.28.x.nix { };
 
-    glib = callPackage ../development/libraries/glib/2.28.x.nix { };
+  atk = callPackage ../development/libraries/atk/2.2.x.nix { };
 
-    glibmm = callPackage ../development/libraries/glibmm/2.28.x.nix { };
+  atkmm = callPackage ../development/libraries/atkmm/2.22.x.nix { };
 
-    atk = callPackage ../development/libraries/atk/2.2.x.nix { };
+  cairo = callPackage ../development/libraries/cairo { };
 
-    atkmm = callPackage ../development/libraries/atkmm/2.22.x.nix { };
+  pango = callPackage ../development/libraries/pango/1.28.x.nix { };
 
-    cairo = callPackage ../development/libraries/cairo { };
+  pangomm = callPackage ../development/libraries/pangomm/2.28.x.nix { };
 
-    pango = callPackage ../development/libraries/pango/1.28.x.nix { };
+  gdk_pixbuf = callPackage ../development/libraries/gdk-pixbuf/2.24.x.nix { };
 
-    pangomm = callPackage ../development/libraries/pangomm/2.28.x.nix { };
+  gtk = callPackage ../development/libraries/gtk+/2.24.x.nix { };
 
-    gdk_pixbuf = callPackage ../development/libraries/gdk-pixbuf/2.24.x.nix { };
-
-    gtk = callPackage ../development/libraries/gtk+/2.24.x.nix { };
-
-    gtkmm = callPackage ../development/libraries/gtkmm/2.24.x.nix { };
-
-    gob2 = callPackage ../development/tools/misc/gob2 { };
-
-  };
+  gtkmm = callPackage ../development/libraries/gtkmm/2.24.x.nix { };
 
   gtkLibs3x = let callPackage = newScope pkgs.gtkLibs3x; in {
     glib = callPackage ../development/libraries/glib/2.30.x.nix { };
@@ -6893,7 +6890,7 @@ let
   gitSVN = gitAndTools.gitSVN;
 
   giv = callPackage ../applications/graphics/giv {
-    inherit (gtkLibs) gdk_pixbuf gtk gob2;
+    inherit (gtkLibs) gdk_pixbuf gtk;
     pcre = pcre.override { unicodeSupport = true; };
   };
 
-- 
1.7.8



More information about the nix-dev mailing list