Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f8039e142598
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 57c745f530c9
Choose a head ref
  • 2 commits
  • 22 files changed
  • 1 contributor

Commits on Mar 5, 2019

  1. gnome2: use makeScope

    jtojnar committed Mar 5, 2019
    Copy the full SHA
    bbe29c0 View commit details
  2. gnome2: remove aliases

    jtojnar committed Mar 5, 2019
    Copy the full SHA
    57c745f View commit details
4 changes: 2 additions & 2 deletions pkgs/applications/misc/gtk2fontsel/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{stdenv, fetchurl, pkgconfig, gtk }:
{stdenv, fetchurl, pkgconfig, gtk2 }:

stdenv.mkDerivation rec {
version = "0.1";
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ stdenv gtk ];
buildInputs = [ stdenv gtk2 ];

preferLocalBuild = true;

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv, glib, fetchurl, fetchpatch, cyrus_sasl, gettext, openldap, ptlib, opal, libXv, rarian, intltool
, perlPackages, evolution-data-server, gnome-doc-utils, avahi, autoreconfHook
, libsigcxx, gtk, dbus-glib, libnotify, libXext, xorgproto, gnome3, boost, libsecret
, libsigcxx, gtk2, dbus-glib, libnotify, libXext, xorgproto, gnome3, boost, libsecret
, pkgconfig, libxml2, unixODBC, db, nspr, nss, zlib
, libXrandr, which, libxslt, libtasn1, gmp, nettle, sqlite, makeWrapper }:

@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {

buildInputs = [ cyrus_sasl gettext openldap ptlib opal libXv rarian intltool
evolution-data-server gnome-doc-utils avahi
libsigcxx gtk dbus-glib libnotify libXext xorgproto sqlite
libsigcxx gtk2 dbus-glib libnotify libXext xorgproto sqlite
gnome3.libsoup glib gnome3.adwaita-icon-theme boost
autoreconfHook pkgconfig libxml2 unixODBC db nspr
nss zlib libsecret libXrandr which libxslt libtasn1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, gnome_python, librsvg, libwnck, libgtop, pkgconfig, python2, gtk }:
{ stdenv, fetchurl, gnome_python, librsvg, libwnck, libgtop, pkgconfig, python2, gtk2 }:

let
inherit (python2.pkgs) python pygtk;
@@ -14,7 +14,7 @@ in stdenv.mkDerivation rec {
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gtk librsvg libwnck libgtop python ];
buildInputs = [ gtk2 librsvg libwnck libgtop python ];
propagatedBuildInputs = [ gnome_python pygtk ];

# gnome-python-desktop expects that .pth file is already installed by PyGTK
4 changes: 2 additions & 2 deletions pkgs/desktops/gnome-2/bindings/gnome-python/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, python2, pkgconfig, libgnome, GConf, glib, gtk, gnome_vfs }:
{ stdenv, fetchurl, python2, pkgconfig, libgnome, GConf, glib, gtk2, gnome_vfs }:

with stdenv.lib;

@@ -14,7 +14,7 @@ in stdenv.mkDerivation rec {
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ python glib gtk GConf libgnome gnome_vfs ];
buildInputs = [ python glib gtk2 GConf libgnome gnome_vfs ];
propagatedBuildInputs = [ pygobject2 pygtk dbus-python ];

# gnome-python expects that .pth file is already installed by PyGTK in the
8 changes: 4 additions & 4 deletions pkgs/desktops/gnome-2/bindings/libglademm/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{ stdenv, fetchurl, pkgconfig, intltool, gtkmm, libglade }:
{ stdenv, fetchurl, pkgconfig, intltool, gtkmm2, libglade }:

stdenv.mkDerivation rec {
name = "libglademm-2.6.7";

src = fetchurl {
url = "mirror://gnome/sources/libglademm/2.6/${name}.tar.bz2";
sha256 = "1hrbg9l5qb7w0xvr7013qamkckyj0fqc426c851l69zpmhakqm1q";
@@ -12,6 +12,6 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ intltool ];
propagatedBuildInputs = [ gtkmm libglade ];

propagatedBuildInputs = [ gtkmm2 libglade ];
}
47 changes: 25 additions & 22 deletions pkgs/desktops/gnome-2/default.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
{ callPackage, self, stdenv, gettext, gvfs, libunique, bison2, rarian
, libstartup_notification, overrides ? {} }:

let overridden = set // overrides; set = with overridden; {
# Backward compatibility.
gtkdoc = self.gtk-doc;
startup_notification = libstartup_notification;
startupnotification = libstartup_notification;
gnomedocutils = self.gnome-doc-utils;
gnomeicontheme = self.gnome_icon_theme;
gnome_common = gnome-common;
inherit rarian;
{ config, stdenv, pkgs, lib }:

lib.makeScope pkgs.newScope (self: with self; {

#### PLATFORM

libIDL = callPackage ./platform/libIDL {
gettext = if stdenv.isDarwin then gettext else null;
gettext = if stdenv.isDarwin then pkgs.gettext else null;
};

ORBit2 = callPackage ./platform/ORBit2 { };
@@ -23,9 +14,7 @@ let overridden = set // overrides; set = with overridden; {

libglade = callPackage ./platform/libglade { };

libgnomeprint = callPackage ./platform/libgnomeprint {
bison = bison2;
};
libgnomeprint = callPackage ./platform/libgnomeprint { };

libgnomeprintui = callPackage ./platform/libgnomeprintui { };

@@ -47,7 +36,6 @@ let overridden = set // overrides; set = with overridden; {
gnome_python = callPackage ./bindings/gnome-python { };

gnome_python_desktop = callPackage ./bindings/gnome-python-desktop { };
python_rsvg = overridden.gnome_python_desktop;

gnome_vfs = callPackage ./platform/gnome-vfs { };

@@ -63,14 +51,11 @@ let overridden = set // overrides; set = with overridden; {

gtkhtml4 = callPackage ./platform/gtkhtml/4.x.nix { };

# Required for nautilus
inherit (libunique);

gtkglext = callPackage ./platform/gtkglext { };

#### DESKTOP

gvfs = gvfs.override { gnome = self; };
gvfs = pkgs.gvfs.override { gnome = self; };

# Removed from recent GNOME releases, but still required
scrollkeeper = callPackage ./desktop/scrollkeeper { };
@@ -85,4 +70,22 @@ let overridden = set // overrides; set = with overridden; {

libglademm = callPackage ./bindings/libglademm { };

}; in overridden
} // lib.optionalAttrs (config.allowAliases or true) {
inherit (pkgs)
# GTK Libs
glib glibmm atk atkmm cairo pango pangomm gdk_pixbuf gtkmm2 libcanberra-gtk2

# Included for backwards compatibility
libsoup libwnck gtk-doc gnome-doc-utils rarian;

gtk = pkgs.gtk2;
gtkmm = pkgs.gtkmm2;
python_rsvg = self.gnome_python_desktop;

gtkdoc = pkgs.gtk-doc;
startup_notification = pkgs.libstartup_notification;
startupnotification = pkgs.libstartup_notification;
gnomedocutils = pkgs.gnome-doc-utils;
gnomeicontheme = self.gnome_icon_theme;
gnome_common = gnome-common;
})
4 changes: 2 additions & 2 deletions pkgs/desktops/gnome-2/desktop/gnome-icon-theme/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, intltool, iconnamingutils, gtk }:
{ stdenv, fetchurl, pkgconfig, intltool, iconnamingutils, gtk2 }:

stdenv.mkDerivation rec {
name = "gnome-icon-theme-2.91.93";
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "cc7f15e54e2640697b58c26e74cc3f6ebadeb4ef6622bffe9c1e6874cc3478d6";
};

nativeBuildInputs = [ pkgconfig intltool iconnamingutils gtk ];
nativeBuildInputs = [ pkgconfig intltool iconnamingutils gtk2 ];

# remove a tree of dirs with no files within
postInstall = '' rm -r "$out/share/locale" '';
4 changes: 2 additions & 2 deletions pkgs/desktops/gnome-2/desktop/gtksourceview/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{stdenv, fetchpatch, fetchurl, autoreconfHook, pkgconfig, atk, cairo, glib
, gnome-common, gtk, pango
, gnome-common, gtk2, pango
, libxml2Python, perl, intltool, gettext, gtk-mac-integration-gtk2 }:

with stdenv.lib;
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ pkgconfig ];
buildInputs = [
atk cairo glib gtk
atk cairo glib gtk2
pango libxml2Python perl intltool
gettext
] ++ optionals stdenv.isDarwin [
4 changes: 2 additions & 2 deletions pkgs/desktops/gnome-2/desktop/vte/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, intltool, pkgconfig, glib, gtk, ncurses
{ stdenv, fetchurl, fetchpatch, intltool, pkgconfig, glib, gtk2, ncurses
, pythonSupport ? false, python27Packages}:

let
@@ -29,7 +29,7 @@ in stdenv.mkDerivation rec {
];

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ intltool glib gtk ncurses ] ++
buildInputs = [ intltool glib gtk2 ncurses ] ++
stdenv.lib.optionals pythonSupport [python pygtk];

configureFlags = [
4 changes: 2 additions & 2 deletions pkgs/desktops/gnome-2/platform/gtkglext/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, pkgconfig, glib, gtk, libGLU_combined, pango, pangox_compat, xorg }:
{ stdenv, fetchurl, fetchpatch, pkgconfig, glib, gtk2, libGLU_combined, pango, pangox_compat, xorg }:

stdenv.mkDerivation rec {
name = "gtkglext-1.2.0";
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
};

buildInputs = with xorg;
[ pkgconfig glib gtk libGLU_combined pango libX11 libXmu ];
[ pkgconfig glib gtk2 libGLU_combined pango libX11 libXmu ];
propagatedBuildInputs = [ pangox_compat ];

patches = [
4 changes: 2 additions & 2 deletions pkgs/desktops/gnome-2/platform/gtkhtml/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, gtk, intltool,
{ stdenv, fetchurl, pkgconfig, gtk2, intltool,
GConf, enchant, isocodes, gnome_icon_theme }:

stdenv.mkDerivation rec {
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
patches = [ ./01_remove-disable-deprecated.patch ];

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gtk intltool GConf enchant isocodes gnome_icon_theme ];
buildInputs = [ gtk2 intltool GConf enchant isocodes gnome_icon_theme ];

NIX_LDFLAGS = [ "-lgthread-2.0" ];
}
4 changes: 2 additions & 2 deletions pkgs/desktops/gnome-2/platform/libbonoboui/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, bison, pkgconfig, popt, libxml2, gtk, libtool
{ stdenv, fetchurl, bison, pkgconfig, popt, libxml2, gtk2, libtool
, intltool, libbonobo, GConf, libgnomecanvas, libgnome, libglade }:

stdenv.mkDerivation rec {
@@ -13,6 +13,6 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];

nativeBuildInputs = [ pkgconfig intltool ];
buildInputs = [ bison popt gtk libxml2 GConf libglade libtool ];
buildInputs = [ bison popt gtk2 libxml2 GConf libglade libtool ];
propagatedBuildInputs = [ libbonobo libgnomecanvas libgnome ];
}
4 changes: 2 additions & 2 deletions pkgs/desktops/gnome-2/platform/libglade/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{stdenv, fetchurl, pkgconfig, gtk, libxml2, python, gettext}:
{stdenv, fetchurl, pkgconfig, gtk2, libxml2, python, gettext}:

stdenv.mkDerivation {
name = "libglade-2.6.4";
@@ -11,7 +11,7 @@ stdenv.mkDerivation {
outputs = [ "out" "dev" ];

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gtk python gettext ];
buildInputs = [ gtk2 python gettext ];

NIX_LDFLAGS = "-lgmodule-2.0";

4 changes: 2 additions & 2 deletions pkgs/desktops/gnome-2/platform/libgnomecanvas/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, gtk, intltool, libart_lgpl, libglade }:
{ stdenv, fetchurl, pkgconfig, gtk2, intltool, libart_lgpl, libglade }:

stdenv.mkDerivation rec {
name = "libgnomecanvas-${minVer}.3";
@@ -13,5 +13,5 @@ stdenv.mkDerivation rec {

buildInputs = [ libglade ];
nativeBuildInputs = [ pkgconfig intltool ];
propagatedBuildInputs = [ libart_lgpl gtk ];
propagatedBuildInputs = [ libart_lgpl gtk2 ];
}
4 changes: 2 additions & 2 deletions pkgs/desktops/gnome-2/platform/libgnomecanvasmm/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, libgnomecanvas, gtkmm }:
{ stdenv, fetchurl, pkgconfig, libgnomecanvas, gtkmm2 }:

stdenv.mkDerivation {
name = "libgnomecanvasmm-2.26.0";
@@ -9,5 +9,5 @@ stdenv.mkDerivation {
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libgnomecanvas gtkmm ];
buildInputs = [ libgnomecanvas gtkmm2 ];
}
4 changes: 2 additions & 2 deletions pkgs/desktops/gnome-2/platform/libgnomecups/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, gtk, gettext, libxml2, intltool, libart_lgpl }:
{ stdenv, fetchurl, pkgconfig, gtk2, gettext, libxml2, intltool, libart_lgpl }:

stdenv.mkDerivation rec {
name = "libgnomecups-0.2.3";
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
patches = [ ./glib.patch ./cups_1.6.patch ];

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gtk gettext intltool libart_lgpl ];
buildInputs = [ gtk2 gettext intltool libart_lgpl ];

propagatedBuildInputs = [ libxml2 ];
}
6 changes: 3 additions & 3 deletions pkgs/desktops/gnome-2/platform/libgnomeprint/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, gtk, gettext, libxml2, intltool, libart_lgpl
, libgnomecups, bison, flex }:
{ stdenv, fetchurl, pkgconfig, gtk2, gettext, libxml2, intltool, libart_lgpl
, libgnomecups, bison2, flex }:

stdenv.mkDerivation rec {
name = "libgnomeprint-2.18.8";
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
patches = [ ./bug653388.patch ];

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gtk gettext intltool libart_lgpl libgnomecups bison flex ];
buildInputs = [ gtk2 gettext intltool libart_lgpl libgnomecups bison2 flex ];

propagatedBuildInputs = [ libxml2 ];

4 changes: 2 additions & 2 deletions pkgs/desktops/gnome-2/platform/libgnomeprintui/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{stdenv, fetchurl, pkgconfig, gtk, gettext, intltool, libgnomecanvas, libgnomeprint, gnomeicontheme}:
{stdenv, fetchurl, pkgconfig, gtk2, gettext, intltool, libgnomecanvas, libgnomeprint, gnome_icon_theme}:

stdenv.mkDerivation {
name = "libgnomeprintui-2.18.6";
@@ -9,5 +9,5 @@ stdenv.mkDerivation {
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gtk gettext intltool libgnomecanvas libgnomeprint gnomeicontheme];
buildInputs = [ gtk2 gettext intltool libgnomecanvas libgnomeprint gnome_icon_theme];
}
4 changes: 2 additions & 2 deletions pkgs/desktops/gnome-2/platform/libgtkhtml/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{stdenv, fetchurl, pkgconfig, gtk, gettext, libxml2 }:
{stdenv, fetchurl, pkgconfig, gtk2, gettext, libxml2 }:

stdenv.mkDerivation {
name = "libgtkhtml-2.11.1";
@@ -9,7 +9,7 @@ stdenv.mkDerivation {
};

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gtk gettext ];
buildInputs = [ gtk2 gettext ];
propagatedBuildInputs = [ libxml2 ];

hardeningDisable = [ "format" ];
2 changes: 1 addition & 1 deletion pkgs/desktops/xfce/default.nix
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
lib.makeScope pkgs.newScope (self: with self; {
#### NixOS support

inherit (pkgs.gnome2) libglade libwnck vte gtksourceview;
inherit (pkgs.gnome2) libglade vte gtksourceview;
inherit (pkgs.gnome3) dconf;
inherit (pkgs.perlPackages) URI;

Loading