diff options
author | Kosyrev Serge <_deepfire@feelingofgreen.ru> | 2015-10-20 13:30:21 +0300 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2015-11-11 14:52:42 +0100 |
commit | c51e3308248babd28172f545641d226dd7f119f0 (patch) | |
tree | 4668735cc889f7b1bf16bb789f40e7cc11dd490b /pkgs/tools/system/bootchart | |
parent | 87d9f25110f37bcfb5cafdbc58e3e81b72d31ae2 (diff) | |
download | nixlib-c51e3308248babd28172f545641d226dd7f119f0.tar nixlib-c51e3308248babd28172f545641d226dd7f119f0.tar.gz nixlib-c51e3308248babd28172f545641d226dd7f119f0.tar.bz2 nixlib-c51e3308248babd28172f545641d226dd7f119f0.tar.lz nixlib-c51e3308248babd28172f545641d226dd7f119f0.tar.xz nixlib-c51e3308248babd28172f545641d226dd7f119f0.tar.zst nixlib-c51e3308248babd28172f545641d226dd7f119f0.zip |
bootchart: 0.9 -> 0.14.7; make pybootchartgui available
Close #10497.
Diffstat (limited to 'pkgs/tools/system/bootchart')
-rw-r--r-- | pkgs/tools/system/bootchart/default.nix | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/pkgs/tools/system/bootchart/default.nix b/pkgs/tools/system/bootchart/default.nix index ef0a6d251a39..dacb143a480b 100644 --- a/pkgs/tools/system/bootchart/default.nix +++ b/pkgs/tools/system/bootchart/default.nix @@ -1,31 +1,21 @@ -{stdenv, fetchurl, gnutar, gzip, coreutils, utillinux, gnugrep, gnused, psmisc, nettools}: +{stdenv, fetchurl, lib, pkgconfig, glib, gtk, python27, pythonPackages }: stdenv.mkDerivation rec { - name = "bootchart-0.9"; + version = "0.14.7"; + name = "bootchart-${version}"; src = fetchurl { - url = "mirror://sourceforge/bootchart/${name}.tar.bz2"; - sha256 = "0z9jvi7cyp3hpx6hf1fyaa8fhnaz7aqid8wrkwp29cngryg3jf3p"; + url = "https://github.com/mmeeks/bootchart/archive/${version}.tar.gz"; + sha256 = "1abn4amsyys6vwn7csxsxny94n24ycca3xhqxqcmdc4j0dzn3kmb"; }; - buildInputs = [ gnutar gzip coreutils utillinux gnugrep gnused psmisc nettools ]; - - patchPhase = '' - export MYPATH= - for i in $buildInputs; do - export MYPATH=''${MYPATH}''${MYPATH:+:}$i/bin:$i/sbin - done - - sed -i -e 's,PATH.*,PATH='$MYPATH, \ - -e 's,^CONF.*,CONF='$out/etc/bootchartd.conf, \ - script/bootchartd - ''; + buildInputs = [ pkgconfig glib gtk python27 pythonPackages.wrapPython pythonPackages.pygtk ]; + pythonPath = with pythonPackages; [ pygtk pycairo ]; installPhase = '' - mkdir -p $out/sbin $out/etc - cp script/bootchartd $out/sbin - cp script/bootchartd.conf $out/etc - chmod +x $out/sbin/bootchartd + make install DESTDIR=$out BINDIR=/bin PY_LIBDIR=/lib/python2.7 + wrapProgram $out/bin/pybootchartgui \ + --prefix PYTHONPATH : "$PYTHONPATH:$(toPythonPath $out)" ''; meta = with stdenv.lib; { |