Merge pull request #105938 from virusdave/dnicponski/scratch/add_osx-cpu-temp
osx-cpu-temp: Init at 1.0
This commit is contained in:
commit
f097374754
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;
|
||||
};
|
||||
}
|
@ -18209,6 +18209,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 New Issue
Block a user