1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/os-specific/linux/powerstat/default.nix

23 lines
647 B
Nix
Raw Normal View History

2016-07-14 17:55:10 +01:00
{ stdenv, lib, fetchurl }:
stdenv.mkDerivation rec {
name = "powerstat-${version}";
2017-01-26 02:52:03 +00:00
version = "0.02.11";
2016-07-14 17:55:10 +01:00
src = fetchurl {
url = "http://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-${version}.tar.gz";
2017-01-26 02:52:03 +00:00
sha256 = "0iid3b3284sf89pfp68i1k5mwmr31bqjzasb8clm2sa45ivafx52";
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 ];
};
}