2016-07-14 18:55:10 +02:00
|
|
|
{ stdenv, lib, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "powerstat-${version}";
|
2018-02-03 13:06:11 +01:00
|
|
|
version = "0.02.15";
|
2016-07-14 18:55:10 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-${version}.tar.gz";
|
2018-02-03 13:06:11 +01:00
|
|
|
sha256 = "0m8662qv77nzbwkdpydiz87kd75cjjajgp30j6mc5padyw65bxxx";
|
2016-07-14 18:55:10 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|