git.iko.soy/typeable/nixpkgs
on master help sign in
terminator: do not use top-level python packages

and refactor to use buildPythonApplication. cc @bjornfor

commitdebfe4f1246365e02905ca564eaab941c8b56752 authorFrederik Rietdijk <fridh@fridh.nl> dateMon 26 Sep 2016, 09:47 (10 years ago) parent93eb9c6
2 files changed+5−15
pkgs/applications/misc/terminator/default.nix+5−14 pkgs/top-level/all-packages.nix−1
pkgs/applications/misc/terminator/default.nix+5−14
@@ -1,8 +1,6 @@
1−{ stdenv, fetchurl, python, pygtk, notify, keybinder, vte, gettext, intltool
2−, makeWrapper
3−}:
1+{ stdenv, fetchurl, pythonPackages, keybinder, vte, gettext, intltool }:
42
5−stdenv.mkDerivation rec {
3+pythonPackages.buildPythonApplication rec {
64 name = "terminator-${version}";
75 version = "0.98";
86
@@ -11,18 +9,11 @@ stdenv.mkDerivation rec {
119 sha256 = "1h965z06dsfk38byyhnsrscd9r91qm92ggwgjrh7xminzsgqqv8a";
1210 };
1311
14− buildInputs = [
15− python pygtk notify keybinder vte gettext intltool makeWrapper
16− ];
12+ propagatedBuildInputs = with pythonPackages; [ pygtk notify keybinder vte gettext intltool ];
1713
18− installPhase = ''
19− python setup.py --without-icon-cache install --prefix="$out"
14+ #setupPyBuildFlags = [ "--without-icon-cache" ];
2015
21− for file in "$out"/bin/*; do
22− wrapProgram "$file" \
23− --prefix PYTHONPATH : "$(toPythonPath $out):$PYTHONPATH"
24− done
25− '';
16+ doCheck = false;
2617
2718 meta = with stdenv.lib; {
2819 description = "Terminal emulator with support for tiling and tabs";
pkgs/top-level/all-packages.nix−1
@@ -15191,7 +15191,6 @@ in
1519115191
1519215192 terminator = callPackage ../applications/misc/terminator {
1519315193 vte = gnome2.vte.override { pythonSupport = true; };
15194− inherit (pythonPackages) notify;
1519515194 };
1519615195
1519715196 termite = callPackage ../applications/misc/termite {