mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 03:53:41 +00:00
28 lines
679 B
Nix
28 lines
679 B
Nix
{ stdenv, fetchurl, python }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "dstat-0.7.2";
|
|
|
|
src = fetchurl {
|
|
url = "http://dag.wieers.com/home-made/dstat/${name}.tar.bz2";
|
|
sha256 = "1bivnciwlamnl9q6i5ygr7jhs8pp833z2bkbrffvsa60szcqda9l";
|
|
};
|
|
|
|
buildInputs = [ ];
|
|
|
|
patchPhase = ''
|
|
sed -i -e 's|/usr/bin/env python|${python}/bin/python|' \
|
|
-e "s|/usr/share/dstat|$out/share/dstat|" dstat
|
|
'';
|
|
|
|
makeFlags = "prefix=$(out)";
|
|
|
|
meta = {
|
|
homepage = http://dag.wieers.com/home-made/dstat/;
|
|
description = "Versatile resource statistics tool";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ ];
|
|
};
|
|
}
|