2021-12-21 21:53:22 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
2016-07-14 16:55:10 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-07-13 16:14:05 +00:00
|
|
|
pname = "powerstat";
|
2021-12-21 21:53:22 +00:00
|
|
|
version = "0.02.27";
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2021-12-21 21:53:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ColinIanKing";
|
|
|
|
repo = pname;
|
|
|
|
rev = "V${version}";
|
|
|
|
hash = "sha256-P6DhsHnB+ak35JpUfD8Q8XbgMhI1QKKe31B8uMT2ZcY=";
|
2016-07-14 16:55:10 +00:00
|
|
|
};
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2021-12-21 21:53:22 +00:00
|
|
|
installFlags = [
|
|
|
|
"BINDIR=${placeholder "out"}/bin"
|
|
|
|
"MANDIR=${placeholder "out"}/share/man/man8"
|
|
|
|
"BASHDIR=${placeholder "out"}/share/bash-completion/completions"
|
|
|
|
];
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2016-07-14 16:55:10 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Laptop power measuring tool";
|
2021-12-21 21:53:22 +00:00
|
|
|
homepage = "https://github.com/ColinIanKing/powerstat";
|
2016-07-14 16:55:10 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ womfoo ];
|
|
|
|
};
|
|
|
|
}
|