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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
705 B
Nix
Raw Normal View History

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