2016-07-14 17:55:10 +01:00
|
|
|
{ stdenv, lib, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "powerstat-${version}";
|
2019-07-08 22:56:30 +01:00
|
|
|
version = "0.02.19";
|
2016-07-14 17:55:10 +01:00
|
|
|
src = fetchurl {
|
2019-04-22 09:14:28 +01:00
|
|
|
url = "https://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-${version}.tar.gz";
|
2019-07-08 22:56:30 +01:00
|
|
|
sha256 = "0yh6l2mx5gfdgrfx406hxbi03c12cgi29pwlzgdfrpz6zs2icaw5";
|
2016-07-14 17:55:10 +01:00
|
|
|
};
|
2019-07-08 22:56:30 +01:00
|
|
|
installFlags = [ "DESTDIR=${placeholder "out"}" ];
|
2016-07-14 17:55:10 +01:00
|
|
|
postInstall = ''
|
|
|
|
mv $out/usr/* $out
|
|
|
|
rm -r $out/usr
|
|
|
|
'';
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Laptop power measuring tool";
|
2019-04-22 09:14:28 +01:00
|
|
|
homepage = https://kernel.ubuntu.com/~cking/powerstat/;
|
2016-07-14 17:55:10 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ womfoo ];
|
|
|
|
};
|
|
|
|
}
|