nixpkgs/pkgs/os-specific/linux/mbpfan/default.nix
Ryan Mulligan e01ecc288a mbpfan: 2.0.1 -> 2.0.2
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/pn2g5kbmbjdi9z60cn2fwzpbcidvz7ks-mbpfan-2.0.2/bin/mbpfan -h` got 0 exit code
- ran `/nix/store/pn2g5kbmbjdi9z60cn2fwzpbcidvz7ks-mbpfan-2.0.2/bin/mbpfan --help` got 0 exit code
- ran `/nix/store/pn2g5kbmbjdi9z60cn2fwzpbcidvz7ks-mbpfan-2.0.2/bin/mbpfan -V` and found version 2.0.2
- ran `/nix/store/pn2g5kbmbjdi9z60cn2fwzpbcidvz7ks-mbpfan-2.0.2/bin/mbpfan --version` and found version 2.0.2
- ran `/nix/store/pn2g5kbmbjdi9z60cn2fwzpbcidvz7ks-mbpfan-2.0.2/bin/mbpfan -h` and found version 2.0.2
- ran `/nix/store/pn2g5kbmbjdi9z60cn2fwzpbcidvz7ks-mbpfan-2.0.2/bin/mbpfan --help` and found version 2.0.2
- found 2.0.2 in filename of file in /nix/store/pn2g5kbmbjdi9z60cn2fwzpbcidvz7ks-mbpfan-2.0.2

cc "@cstrahan"
2018-02-27 06:00:12 -08:00

25 lines
730 B
Nix

{ stdenv, lib, fetchFromGitHub, fetchpatch, gnugrep, kmod }:
stdenv.mkDerivation rec {
name = "mbpfan-${version}";
version = "2.0.2";
src = fetchFromGitHub {
owner = "dgraziotin";
repo = "mbpfan";
rev = "v${version}";
sha256 = "1l8fj92jxfp0sldvznsdsm3pn675b35clq3371h6d5wk4jx67fvg";
};
installPhase = ''
mkdir -p $out/bin $out/etc
cp bin/mbpfan $out/bin
cp mbpfan.conf $out/etc
'';
meta = with lib; {
description = "Daemon that uses input from coretemp module and sets the fan speed using the applesmc module";
homepage = https://github.com/dgraziotin/mbpfan;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ cstrahan ];
};
}