mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
dstat: fix bad interpreter: No such file
This commit is contained in:
parent
a1d9d7efc0
commit
033525c6b8
1 changed files with 2 additions and 13 deletions
|
@ -1,6 +1,6 @@
|
||||||
{ stdenv, fetchurl, python2Packages }:
|
{ stdenv, fetchurl, python2Packages }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
python2Packages.mkPythonDerivation rec {
|
||||||
name = "dstat-${version}";
|
name = "dstat-${version}";
|
||||||
version = "0.7.3";
|
version = "0.7.3";
|
||||||
|
|
||||||
|
@ -9,21 +9,10 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "16286z3y2lc9nsq8njzjkv6k2vyxrj9xiixj1k3gnsbvhlhkirj6";
|
sha256 = "16286z3y2lc9nsq8njzjkv6k2vyxrj9xiixj1k3gnsbvhlhkirj6";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with python2Packages; [ python-wifi wrapPython ];
|
propagatedBuildInputs = with python2Packages; [ python-wifi ];
|
||||||
|
|
||||||
pythonPath = with python2Packages; [ python-wifi ];
|
|
||||||
|
|
||||||
patchPhase = ''
|
|
||||||
sed -i -e 's|/usr/bin/env python|${python2Packages.python.interpreter}|' \
|
|
||||||
-e "s|/usr/share/dstat|$out/share/dstat|" dstat
|
|
||||||
'';
|
|
||||||
|
|
||||||
makeFlags = [ "prefix=$(out)" ];
|
makeFlags = [ "prefix=$(out)" ];
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
wrapPythonProgramsIn $out/bin "$out $pythonPath"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://dag.wieers.com/home-made/dstat/;
|
homepage = http://dag.wieers.com/home-made/dstat/;
|
||||||
description = "Versatile resource statistics tool";
|
description = "Versatile resource statistics tool";
|
||||||
|
|
Loading…
Reference in a new issue