diff options
author | devins2518 <drsingh2518@icloud.com> | 2021-06-03 10:28:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-03 17:28:55 +0200 |
commit | 613238018708a176a154695d8320dae6aa0357ee (patch) | |
tree | 15e9ec919aac01150d6b0cc64e8280e273e515f1 /pkgs/tools/misc | |
parent | 8894fc5d49dbd040639a7a243129cf808f1a7b28 (diff) | |
download | nixlib-613238018708a176a154695d8320dae6aa0357ee.tar nixlib-613238018708a176a154695d8320dae6aa0357ee.tar.gz nixlib-613238018708a176a154695d8320dae6aa0357ee.tar.bz2 nixlib-613238018708a176a154695d8320dae6aa0357ee.tar.lz nixlib-613238018708a176a154695d8320dae6aa0357ee.tar.xz nixlib-613238018708a176a154695d8320dae6aa0357ee.tar.zst nixlib-613238018708a176a154695d8320dae6aa0357ee.zip |
nvfancontrol: init at 0.5.1 (#125070)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/nvfancontrol/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/misc/nvfancontrol/default.nix b/pkgs/tools/misc/nvfancontrol/default.nix new file mode 100644 index 000000000000..2bfdb9896e4a --- /dev/null +++ b/pkgs/tools/misc/nvfancontrol/default.nix @@ -0,0 +1,31 @@ +{ lib, rustPlatform, fetchFromGitHub, libXNVCtrl, libX11, libXext }: + +rustPlatform.buildRustPackage rec { + pname = "nvfancontrol"; + version = "0.5.1"; + + src = fetchFromGitHub { + owner = "foucault"; + repo = pname; + rev = version; + sha256 = "sha256-0WBQSnTYVc3sNmZf/KFzznMg9AVsyaBgdx/IvG1dZAw="; + }; + + cargoSha256 = "sha256-fEzdghGQSSeyeyiHjw1ggQ38gsETJFl9bq/tizGxIis="; + + nativeBuildInputs = [ libXNVCtrl libX11 libXext ]; + + # Needed for static linking + preConfigure = '' + export LIBRARY_PATH=${libXNVCtrl}/lib:${libX11}/lib:${libXext}/lib + ''; + + meta = with lib; { + description = "NVidia dynamic fan control for Linux"; + homepage = "https://github.com/foucault/nvfancontrol"; + changelog = "https://github.com/foucault/nvfancontrol/releases/tag/${version}"; + license = with licenses; [ gpl3Only ]; + platforms = platforms.linux; + maintainers = with maintainers; [ devins2518 ]; + }; +} |