at 15.09-beta 27 lines 700 B view raw
1{ stdenv, fetchurl, python }: 2 3stdenv.mkDerivation rec { 4 name = "dstat-0.7.2"; 5 6 src = fetchurl { 7 url = "http://dag.wieers.com/home-made/dstat/${name}.tar.bz2"; 8 sha256 = "1bivnciwlamnl9q6i5ygr7jhs8pp833z2bkbrffvsa60szcqda9l"; 9 }; 10 11 buildInputs = [ ]; 12 13 patchPhase = '' 14 sed -i -e 's|/usr/bin/env python|${python}/bin/python|' \ 15 -e "s|/usr/share/dstat|$out/share/dstat|" dstat 16 ''; 17 18 makeFlags = "prefix=$(out)"; 19 20 meta = with stdenv.lib; { 21 homepage = http://dag.wieers.com/home-made/dstat/; 22 description = "Versatile resource statistics tool"; 23 license = licenses.gpl2; 24 platforms = platforms.linux; 25 maintainers = with maintainers; [ jgeerds ]; 26 }; 27}