nixpkgs/pkgs/os-specific/linux/powerstat/default.nix

27 lines
657 B
Nix
Raw Normal View History

2016-07-14 16:55:10 +00:00
{ stdenv, lib, fetchurl }:
stdenv.mkDerivation rec {
2019-07-13 16:14:05 +00:00
pname = "powerstat";
2020-07-10 08:10:02 +00:00
version = "0.02.24";
2016-07-14 16:55:10 +00:00
src = fetchurl {
2019-07-13 16:14:05 +00:00
url = "https://kernel.ubuntu.com/~cking/tarballs/${pname}/${pname}-${version}.tar.gz";
2020-07-10 08:10:02 +00:00
sha256 = "0yrc1xi9flxn2mvmzp0b0vd0md5z4p8fd4y8bszc67xy12qiqy0j";
2016-07-14 16:55:10 +00:00
};
2019-07-08 21:56:30 +00:00
installFlags = [ "DESTDIR=${placeholder "out"}" ];
2016-07-14 16:55:10 +00:00
postInstall = ''
mv $out/usr/* $out
rm -r $out/usr
'';
2016-07-14 16:55:10 +00:00
meta = with lib; {
description = "Laptop power measuring tool";
2020-02-29 09:56:31 +00:00
homepage = "https://kernel.ubuntu.com/~cking/powerstat/";
2016-07-14 16:55:10 +00:00
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ womfoo ];
};
}