Merge pull request #105938 from virusdave/dnicponski/scratch/add_osx-cpu-temp

osx-cpu-temp: Init at 1.0
This commit is contained in:
Sandro 2020-12-11 06:56:57 +01:00 committed by GitHub
commit f097374754
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

View 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;
};
}

View file

@ -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 { };