osx-cpu-temp: Init at 1.0
This commit is contained in:
parent
5420a92926
commit
9fbe8cc64b
2 changed files with 35 additions and 0 deletions
31
pkgs/os-specific/darwin/osx-cpu-temp/default.nix
Normal file
31
pkgs/os-specific/darwin/osx-cpu-temp/default.nix
Normal file
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -18118,6 +18118,10 @@ in
|
|||
|
||||
openisns = callPackage ../os-specific/linux/open-isns { };
|
||||
|
||||
osx-cpu-temp = callPackage ../os-specific/darwin/osx-cpu-temp {
|
||||
inherit (pkgs.darwin.apple_sdk.frameworks) IOKit;
|
||||
};
|
||||
|
||||
osxfuse = callPackage ../os-specific/darwin/osxfuse { };
|
||||
|
||||
osxsnarf = callPackage ../os-specific/darwin/osxsnarf { };
|
||||
|
|
Loading…
Reference in a new issue