2019-09-15 22:51:16 +01:00
|
|
|
{ stdenv, lib, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "power-calibrate";
|
2019-12-24 07:55:39 +00:00
|
|
|
version = "0.01.29";
|
2019-09-17 04:18:26 +01:00
|
|
|
|
2019-09-15 22:51:16 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://kernel.ubuntu.com/~cking/tarballs/${pname}/${pname}-${version}.tar.gz";
|
2019-12-24 07:55:39 +00:00
|
|
|
sha256 = "1v8wvhjqglkvk9cl2b48lkcwhbc6nsdi3hjd7sap4hyvd6703pgs";
|
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"
|
|
|
|
];
|
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://kernel.ubuntu.com/~cking/power-calibrate/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|