summary refs log tree commit diff
path: root/pkgs/os-specific/linux/fanctl/default.nix
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-10-28 23:15:24 +0200
committerRobin Appelman <robin@icewind.nl>2023-01-27 13:07:50 +0100
commit4b22cf45b48d322eaa475c7ee7c6b2beec7e2a3a (patch)
tree208ada030d1cb93523cd4c8d22ae88d77ee62fe0 /pkgs/os-specific/linux/fanctl/default.nix
parent8d6a0e96583ca8fa13ae983406753acfb3c52755 (diff)
downloadnixpkgs-4b22cf45b48d322eaa475c7ee7c6b2beec7e2a3a.tar
nixpkgs-4b22cf45b48d322eaa475c7ee7c6b2beec7e2a3a.tar.gz
nixpkgs-4b22cf45b48d322eaa475c7ee7c6b2beec7e2a3a.tar.bz2
nixpkgs-4b22cf45b48d322eaa475c7ee7c6b2beec7e2a3a.tar.lz
nixpkgs-4b22cf45b48d322eaa475c7ee7c6b2beec7e2a3a.tar.xz
nixpkgs-4b22cf45b48d322eaa475c7ee7c6b2beec7e2a3a.tar.zst
nixpkgs-4b22cf45b48d322eaa475c7ee7c6b2beec7e2a3a.zip
fanctl: init at 0.6.4
Diffstat (limited to 'pkgs/os-specific/linux/fanctl/default.nix')
-rw-r--r--pkgs/os-specific/linux/fanctl/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/fanctl/default.nix b/pkgs/os-specific/linux/fanctl/default.nix
new file mode 100644
index 00000000000..d8769b0f04d
--- /dev/null
+++ b/pkgs/os-specific/linux/fanctl/default.nix
@@ -0,0 +1,23 @@
+{ lib, fetchFromGitLab, rustPlatform }:
+
+rustPlatform.buildRustPackage rec {
+  version = "0.6.4";
+  pname = "fanctl";
+
+  src = fetchFromGitLab {
+    owner = "mcoffin";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-XmawybmqRJ9Lj6ii8TZBFwqdQZVp0pOLN4xiSLkU/bw=";
+  };
+
+  cargoSha256 = "sha256-tj00DXQEqC/8+3uzTMWcph+1fNTTVZLSJbV/5lLFkFs=";
+
+  meta = with lib; {
+    description = "Replacement for fancontrol with more fine-grained control interface in its config file";
+    homepage = "https://gitlab.com/mcoffin/fanctl";
+    license = licenses.gpl3Only;
+    maintainers = with maintainers; [ icewind1991 ];
+    platforms = platforms.linux;
+  };
+}