about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/fanctl/default.nix
blob: 072ecda1e38fa3c0d182a6126122c247c5154601 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, fetchFromGitLab, rustPlatform }:

rustPlatform.buildRustPackage rec {
  version = "0.6.4";
  pname = "fanctl";

  src = fetchFromGitLab {
    owner = "mcoffin";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-XmawybmqRJ9Lj6ii8TZBFwqdQZVp0pOLN4xiSLkU/bw=";
  };

  cargoHash = "sha256-tj00DXQEqC/8+3uzTMWcph+1fNTTVZLSJbV/5lLFkFs=";

  meta = with lib; {
    description = "Replacement for fancontrol with more fine-grained control interface in its config file";
    mainProgram = "fanctl";
    homepage = "https://gitlab.com/mcoffin/fanctl";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ icewind1991 ];
    platforms = platforms.linux;
  };
}