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

25 lines
668 B
Nix
Raw Normal View History

2019-09-15 21:51:16 +00:00
{ stdenv, lib, fetchurl }:
stdenv.mkDerivation rec {
pname = "power-calibrate";
version = "0.01.28";
2019-09-17 03:18:26 +00:00
2019-09-15 21:51:16 +00:00
src = fetchurl {
url = "https://kernel.ubuntu.com/~cking/tarballs/${pname}/${pname}-${version}.tar.gz";
sha256 = "1miyjs0vngzfdlsxhn5gndcalzkh28grg4m6faivvp1c6mjp794m";
};
2019-09-17 03:18:26 +00:00
2019-09-15 21:51:16 +00:00
installFlags = [
"BINDIR=${placeholder "out"}/bin"
"MANDIR=${placeholder "out"}/share/man/man8"
];
2019-09-17 03:18:26 +00:00
2019-09-15 21:51:16 +00:00
meta = with lib; {
description = "Tool to calibrate power consumption";
homepage = "https://kernel.ubuntu.com/~cking/power-calibrate/";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ dtzWill ];
};
}