diff options
author | Will Dietz <w@wdtz.org> | 2019-09-15 16:51:16 -0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2019-09-16 12:08:24 -0500 |
commit | 467e561be0358933140f517abfa54dfdf0e211eb (patch) | |
tree | ef294479cd4dde2f38eb8910e38a0bd3bf6b49e9 | |
parent | 2ff3620d0dcd8dbb61d14cafba01f4ca47acd8bb (diff) | |
download | nixpkgs-467e561be0358933140f517abfa54dfdf0e211eb.tar nixpkgs-467e561be0358933140f517abfa54dfdf0e211eb.tar.gz nixpkgs-467e561be0358933140f517abfa54dfdf0e211eb.tar.bz2 nixpkgs-467e561be0358933140f517abfa54dfdf0e211eb.tar.lz nixpkgs-467e561be0358933140f517abfa54dfdf0e211eb.tar.xz nixpkgs-467e561be0358933140f517abfa54dfdf0e211eb.tar.zst nixpkgs-467e561be0358933140f517abfa54dfdf0e211eb.zip |
power-calibrate: init at 0.01.28
-rw-r--r-- | pkgs/os-specific/linux/power-calibrate/default.nix | 21 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/power-calibrate/default.nix b/pkgs/os-specific/linux/power-calibrate/default.nix new file mode 100644 index 00000000000..da83a3bc357 --- /dev/null +++ b/pkgs/os-specific/linux/power-calibrate/default.nix @@ -0,0 +1,21 @@ +{ stdenv, lib, fetchurl }: + +stdenv.mkDerivation rec { + pname = "power-calibrate"; + version = "0.01.28"; + src = fetchurl { + url = "https://kernel.ubuntu.com/~cking/tarballs/${pname}/${pname}-${version}.tar.gz"; + sha256 = "1miyjs0vngzfdlsxhn5gndcalzkh28grg4m6faivvp1c6mjp794m"; + }; + installFlags = [ + "BINDIR=${placeholder "out"}/bin" + "MANDIR=${placeholder "out"}/share/man/man8" + ]; + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7668880edbf..1b0b3bec4fa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15625,6 +15625,8 @@ in osxfuse = callPackage ../os-specific/darwin/osxfuse { }; + power-calibrate = callPackage ../os-specific/linux/power-calibrate { }; + powerstat = callPackage ../os-specific/linux/powerstat { }; smemstat = callPackage ../os-specific/linux/smemstat { }; |