1 { stdenv, lib, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
6 src = fetchFromGitHub {
10 sha256 = "sha256-F9IWUcILOuLn5K4zRSU5jn+1Wk1xy0CONSI6JTXU2pA=";
13 mkdir -p $out/bin $out/etc
14 cp bin/mbpfan $out/bin
15 cp mbpfan.conf $out/etc
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;