Skip to content

Commit

Permalink
dstat: fix bad interpreter: No such file
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Dec 10, 2016
1 parent a1d9d7e commit 033525c
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions pkgs/os-specific/linux/dstat/default.nix
@@ -1,6 +1,6 @@
{ stdenv, fetchurl, python2Packages }:

stdenv.mkDerivation rec {
python2Packages.mkPythonDerivation rec {
name = "dstat-${version}";
version = "0.7.3";

Expand All @@ -9,21 +9,10 @@ stdenv.mkDerivation rec {
sha256 = "16286z3y2lc9nsq8njzjkv6k2vyxrj9xiixj1k3gnsbvhlhkirj6";
};

buildInputs = with python2Packages; [ python-wifi wrapPython ];

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
'';
propagatedBuildInputs = with python2Packages; [ python-wifi ];

makeFlags = [ "prefix=$(out)" ];

postInstall = ''
wrapPythonProgramsIn $out/bin "$out $pythonPath"
'';

meta = with stdenv.lib; {
homepage = http://dag.wieers.com/home-made/dstat/;
description = "Versatile resource statistics tool";
Expand Down

1 comment on commit 033525c

@FRidh
Copy link
Member Author

@FRidh FRidh commented on 033525c Dec 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.