base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / mb / mbpfan / package.nix
blob0178e3e751a1053b1961eda8a37413d55823a158
1 { stdenv, lib, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4   pname = "mbpfan";
5   version = "2.4.0";
6   src = fetchFromGitHub {
7     owner = "dgraziotin";
8     repo = "mbpfan";
9     rev = "v${version}";
10     sha256 = "sha256-F9IWUcILOuLn5K4zRSU5jn+1Wk1xy0CONSI6JTXU2pA=";
11   };
12   installPhase = ''
13     mkdir -p $out/bin $out/etc
14     cp bin/mbpfan $out/bin
15     cp mbpfan.conf $out/etc
16   '';
17   meta = with lib; {
18     description = "Daemon that uses input from coretemp module and sets the fan speed using the applesmc module";
19     mainProgram = "mbpfan";
20     homepage = "https://github.com/dgraziotin/mbpfan";
21     license = licenses.gpl3;
22     platforms = platforms.linux;
23     maintainers = [ ];
24   };