2021-01-17 02:21:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, gnome_python, librsvg, libwnck, libgtop, pkg-config, python2, gtk2 }:
|
2016-12-20 21:37:14 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
inherit (python2.pkgs) python pygtk;
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
ver_maj = "2.32";
|
|
|
|
ver_min = "0";
|
|
|
|
version = "${ver_maj}.${ver_min}";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gnome-python-desktop";
|
2016-12-20 21:37:14 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gnome-python-desktop/${ver_maj}/gnome-python-desktop-${version}.tar.bz2";
|
|
|
|
sha256 = "1s8f9rns9v7qlwjv9qh9lr8crp88dpzfm45hj47zc3ivpy0dbnq9";
|
|
|
|
};
|
|
|
|
|
2021-01-17 02:21:50 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-03-03 21:30:31 +00:00
|
|
|
buildInputs = [ gtk2 librsvg libwnck libgtop python ];
|
2016-12-20 21:37:14 +00:00
|
|
|
propagatedBuildInputs = [ gnome_python pygtk ];
|
|
|
|
|
|
|
|
# gnome-python-desktop expects that .pth file is already installed by PyGTK
|
|
|
|
# in the same directory. This is not the case for Nix.
|
|
|
|
postInstall = ''
|
2019-08-15 13:41:18 +01:00
|
|
|
echo "gtk-2.0" > $out/${python2.sitePackages}/${pname}-${version}.pth
|
2016-12-20 21:37:14 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.pygtk.org";
|
2016-12-20 21:37:14 +00:00
|
|
|
description = "Python bindings for GNOME desktop packages";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|