summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2019-12-18 22:12:44 -0500
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2019-12-19 09:25:22 +0100
commita52749e797d37aae31542ff7681a15f9c3ad3718 (patch)
treec457a04eeb2e34c33b36e8e5dd6baa3dc7bf0494 /pkgs
parenta69064eebc367672ee1e572677595cab1bdf27d6 (diff)
downloadnixpkgs-a52749e797d37aae31542ff7681a15f9c3ad3718.tar
nixpkgs-a52749e797d37aae31542ff7681a15f9c3ad3718.tar.gz
nixpkgs-a52749e797d37aae31542ff7681a15f9c3ad3718.tar.bz2
nixpkgs-a52749e797d37aae31542ff7681a15f9c3ad3718.tar.lz
nixpkgs-a52749e797d37aae31542ff7681a15f9c3ad3718.tar.xz
nixpkgs-a52749e797d37aae31542ff7681a15f9c3ad3718.tar.zst
nixpkgs-a52749e797d37aae31542ff7681a15f9c3ad3718.zip
gnome2.GConf: python2 -> python3
Borrowing fedora's 2to3 trick:
https://src.fedoraproject.org/rpms/GConf2/blob/master/f/GConf2.spec#_90

(thank you, worldofpeace!)
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/desktops/gnome-2/platform/GConf/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/desktops/gnome-2/platform/GConf/default.nix b/pkgs/desktops/gnome-2/platform/GConf/default.nix
index 1a1848491b1..f13ff571242 100644
--- a/pkgs/desktops/gnome-2/platform/GConf/default.nix
+++ b/pkgs/desktops/gnome-2/platform/GConf/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, pkgconfig, dbus-glib, glib, ORBit2, libxml2, polkit, python2, intltool }:
+{ stdenv, fetchurl, pkgconfig, dbus-glib, glib, ORBit2, libxml2, polkit, python3, intltool }:
 
 stdenv.mkDerivation rec {
   pname = "gconf";
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
 
   outputs = [ "out" "dev" "man" ];
 
-  buildInputs = [ ORBit2 libxml2 python2 ]
+  buildInputs = [ ORBit2 libxml2 python3 ]
     # polkit requires pam, which requires shadow.h, which is not available on
     # darwin
     ++ stdenv.lib.optional (!stdenv.isDarwin) polkit;
@@ -24,6 +24,10 @@ stdenv.mkDerivation rec {
     # fixes the "libgconfbackend-oldxml.so is not portable" error on darwin
     stdenv.lib.optional stdenv.isDarwin [ "--enable-static" ];
 
+  postPatch = ''
+    2to3 --write --nobackup gsettings/gsettings-schema-convert
+  '';
+
   meta = with stdenv.lib; {
     homepage = https://projects.gnome.org/gconf/;
     description = "Deprecated system for storing application preferences";