nixpkgs/pkgs/os-specific/linux/power-calibrate/default.nix

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

28 lines
726 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub }:
2019-09-15 22:51:16 +01:00
stdenv.mkDerivation rec {
pname = "power-calibrate";
version = "0.01.34";
2019-09-17 04:18:26 +01:00
src = fetchFromGitHub {
owner = "ColinIanKing";
repo = pname;
rev = "V${version}";
hash = "sha256-T2fCTE+snNt1ylOpVR0JfT2x0lWrgItpfjtUx/zjaQw=";
2019-09-15 22:51:16 +01:00
};
2019-09-17 04:18:26 +01:00
2019-09-15 22:51:16 +01:00
installFlags = [
"BINDIR=${placeholder "out"}/bin"
"MANDIR=${placeholder "out"}/share/man/man8"
"BASHDIR=${placeholder "out"}/share/bash-completion/completions"
2019-09-15 22:51:16 +01:00
];
2019-09-17 04:18:26 +01:00
2019-09-15 22:51:16 +01:00
meta = with lib; {
description = "Tool to calibrate power consumption";
homepage = "https://github.com/ColinIanKing/power-calibrate";
2019-09-15 22:51:16 +01:00
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ dtzWill ];
};
}