3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/powerstat/default.nix
2018-02-03 23:08:26 +11:00

23 lines
647 B
Nix

{ stdenv, lib, fetchurl }:
stdenv.mkDerivation rec {
name = "powerstat-${version}";
version = "0.02.15";
src = fetchurl {
url = "http://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-${version}.tar.gz";
sha256 = "0m8662qv77nzbwkdpydiz87kd75cjjajgp30j6mc5padyw65bxxx";
};
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 ];
};
}