powerstat: init at 0.02.10

This commit is contained in:
Kranium Gikos Mendoza 2016-07-15 00:55:10 +08:00
parent f88f31c4f0
commit a28dda1102
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,22 @@
{ stdenv, lib, fetchurl }:
stdenv.mkDerivation rec {
name = "powerstat-${version}";
version = "0.02.10";
src = fetchurl {
url = "http://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-${version}.tar.gz";
sha256 = "11n2k20h27j7m8j0l524w23xlkjhapsb3ml1qpx1si7gf0pkglcl";
};
installFlags = [ "DESTDIR=$(out)" ];
postInstall = ''
mv $out/usr/* $out
rm -r $out/usr
'';
meta = with lib; {
description = "Laptop power measuring tool";
homepage = http://kernel.ubuntu.com/~cking/powerstat/;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ womfoo ];
};
}

View File

@ -10860,6 +10860,8 @@ in
openisns = callPackage ../os-specific/linux/open-isns { };
powerstat = callPackage ../os-specific/linux/powerstat { };
tgt = callPackage ../tools/networking/tgt { };
# -- Linux kernel expressions ------------------------------------------------