summaryrefslogtreecommitdiffstats
path: root/pkgs/os-specific/darwin/osx-cpu-temp/default.nix
diff options
context:
space:
mode:
authorDave Nicponski <dave.nicponski@gmail.com>2020-12-04 20:46:43 -0500
committerDave Nicponski <dave.nicponski@gmail.com>2020-12-09 12:18:05 -0500
commit9fbe8cc64b0b4e5977615ee619fae6712b705e95 (patch)
treec938792308318d60d533ce783b44b60eafe86ab1 /pkgs/os-specific/darwin/osx-cpu-temp/default.nix
parent5420a929261beff7b300be574dd6106ab736aec2 (diff)
osx-cpu-temp: Init at 1.0
Diffstat (limited to 'pkgs/os-specific/darwin/osx-cpu-temp/default.nix')
-rw-r--r--pkgs/os-specific/darwin/osx-cpu-temp/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/osx-cpu-temp/default.nix b/pkgs/os-specific/darwin/osx-cpu-temp/default.nix
new file mode 100644
index 000000000000..1e8a56154f34
--- /dev/null
+++ b/pkgs/os-specific/darwin/osx-cpu-temp/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchFromGitHub
+, IOKit
+}:
+
+stdenv.mkDerivation rec {
+ pname = "osx-cpu-temp";
+ version = "unstable-2020-12-04";
+
+ src = fetchFromGitHub rec {
+ name = "osx-cpu-temp-source";
+ owner = "lavoiesl";
+ repo = pname;
+ rev = "6ec951be449badcb7fb84676bbc2c521e600e844";
+ sha256 = "1nlibgr55bpln6jbdf8vqcp0fj9zv9343vflb7s9w0yh33fsbg9d";
+ };
+
+ buildInputs = [ IOKit ];
+
+ installPhase = ''
+ mkdir -p $out/bin
+ cp osx-cpu-temp $out/bin
+ '';
+
+ meta = with stdenv.lib; {
+ description = "Outputs current CPU temperature for OSX.";
+ homepage = "https://github.com/lavoiesl/osx-cpu-temp";
+ license = licenses.gpl2;
+ maintainers = with maintainers; [ virusdave ];
+ platforms = platforms.darwin;
+ };
+}