2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2020-12-25 13:55:36 +00:00
|
|
|
, 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
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Outputs current CPU temperature for OSX";
|
2020-12-25 13:55:36 +00:00
|
|
|
homepage = "https://github.com/lavoiesl/osx-cpu-temp";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ virusdave ];
|
|
|
|
platforms = platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|