depot/pkgs/os-specific/darwin/osx-cpu-temp/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

31 lines
738 B
Nix

{ lib, 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 lib; {
description = "Outputs current CPU temperature for OSX";
homepage = "https://github.com/lavoiesl/osx-cpu-temp";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ virusdave ];
platforms = platforms.darwin;
};
}