2016-07-14 17:55:10 +01:00
|
|
|
{ stdenv, lib, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "powerstat-${version}";
|
2018-08-08 22:36:57 +01:00
|
|
|
version = "0.02.18";
|
2016-07-14 17:55:10 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-${version}.tar.gz";
|
2018-08-08 22:36:57 +01:00
|
|
|
sha256 = "1glryfmq9h7h8hsasg5ffl9vrcbjkkq3xqdxmbdhxmn137w7vgm5";
|
2016-07-14 17:55:10 +01:00
|
|
|
};
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|