diff --git a/pkgs/development/python-modules/pygtk/default.nix b/pkgs/development/python-modules/pygtk/default.nix new file mode 100644 index 000000000000..d6f40050fa3e --- /dev/null +++ b/pkgs/development/python-modules/pygtk/default.nix @@ -0,0 +1,11 @@ +{stdenv, fetchurl, python, pkgconfig, glib, gtk}: + +stdenv.mkDerivation { + name = "pygtk-2.6.1"; +# builder = ./builder.sh; + src = fetchurl { + url = http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.6/pygtk-2.6.1.tar.bz2; + md5 = "b4610829e4f57b5538dfa3b8f1fbe026"; + }; + buildInputs = [python pkgconfig glib gtk]; +} diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index f7b406d1acb7..907c3eb67711 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -30,6 +30,8 @@ rec { substituter = ../build-support/substitute/substitute.sh; + makeWrapper = ../build-support/make-wrapper/make-wrapper.sh; + ### TOOLS @@ -133,8 +135,7 @@ rec { }; bittorrent = (import ../tools/networking/bittorrent) { - inherit fetchurl stdenv; - wxPython = wxPython24; + inherit fetchurl stdenv python pygtk makeWrapper; }; graphviz = (import ../tools/graphics/graphviz) { @@ -917,6 +918,11 @@ rec { wxGTK = wxGTK24; }; + pygtk = (import ../development/python-modules/pygtk) { + inherit fetchurl stdenv python pkgconfig; + inherit (gtkLibs) glib gtk; + }; + readline = (import ../development/libraries/readline) { inherit fetchurl stdenv ncurses; }; diff --git a/pkgs/tools/networking/bittorrent/builder.sh b/pkgs/tools/networking/bittorrent/builder.sh index c9114a785007..ba195a02e159 100644 --- a/pkgs/tools/networking/bittorrent/builder.sh +++ b/pkgs/tools/networking/bittorrent/builder.sh @@ -1,5 +1,5 @@ -buildInputs="$python $wxPython" . $stdenv/setup +. $makeWrapper buildPhase=buildPhase buildPhase() { @@ -11,14 +11,12 @@ installPhase() { python setup.py install --prefix=$out # Create wrappers that set the environment correctly. - mv $out/bin $out/bin-orig - mkdir $out/bin - for i in $(cd $out/bin-orig && ls); do - cat > $out/bin/$i <