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