mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
gnome2.GConf: python2 -> python3
Borrowing fedora's 2to3 trick: https://src.fedoraproject.org/rpms/GConf2/blob/master/f/GConf2.spec#_90 (thank you, worldofpeace!)
This commit is contained in:
parent
a69064eebc
commit
a52749e797
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue