commit
96850a66c8
@ -9422,6 +9422,12 @@
|
||||
githubId = 11706080;
|
||||
name = "Moritz Clasmeier";
|
||||
};
|
||||
mtoohey = {
|
||||
name = "Matthew Toohey";
|
||||
email = "contact@mtoohey.com";
|
||||
github = "mtoohey31";
|
||||
githubId = 36740602;
|
||||
};
|
||||
MtP = {
|
||||
email = "marko.nixos@poikonen.de";
|
||||
github = "MtP76";
|
||||
|
31
pkgs/os-specific/linux/fan2go/default.nix
Normal file
31
pkgs/os-specific/linux/fan2go/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ buildGoModule, fetchFromGitHub, lib, lm_sensors }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "fan2go";
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "markusressel";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "3pnJaLD+FEQWAAwIiTkcs9VgqO0JwRaK7JLdIygeChY=";
|
||||
};
|
||||
|
||||
vendorSha256 = "9EeiYPNTUEFHxTdvVb2JLU6Qi0oazH+n9MB8Dg+RLJ4=";
|
||||
|
||||
postConfigure = ''
|
||||
substituteInPlace vendor/github.com/md14454/gosensors/gosensors.go \
|
||||
--replace '"/etc/sensors3.conf"' '"${lm_sensors}/etc/sensors3.conf"'
|
||||
'';
|
||||
|
||||
CGO_CFLAGS = "-I ${lm_sensors}/include";
|
||||
CGO_LDFLAGS = "-L ${lm_sensors}/lib";
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple daemon providing dynamic fan speed control based on temperature sensors";
|
||||
homepage = "https://github.com/markusressel/fan2go";
|
||||
license = licenses.agpl3Plus;
|
||||
maintainers = with maintainers; [ mtoohey ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -24856,6 +24856,8 @@ with pkgs;
|
||||
|
||||
facetimehd-firmware = callPackage ../os-specific/linux/firmware/facetimehd-firmware { };
|
||||
|
||||
fan2go = callPackage ../os-specific/linux/fan2go { };
|
||||
|
||||
fatrace = callPackage ../os-specific/linux/fatrace { };
|
||||
|
||||
ffado = libsForQt5.callPackage ../os-specific/linux/ffado {
|
||||
|
Loading…
Reference in New Issue
Block a user