mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
nvfancontrol: init at 0.5.1 (#125070)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
8894fc5d49
commit
6132380187
31
pkgs/tools/misc/nvfancontrol/default.nix
Normal file
31
pkgs/tools/misc/nvfancontrol/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -7305,6 +7305,10 @@ in
|
|||
|
||||
nssmdns = callPackage ../tools/networking/nss-mdns { };
|
||||
|
||||
nvfancontrol = callPackage ../tools/misc/nvfancontrol {
|
||||
libXNVCtrl = linuxPackages.nvidia_x11.settings.libXNVCtrl;
|
||||
};
|
||||
|
||||
nvimpager = callPackage ../tools/misc/nvimpager { };
|
||||
|
||||
nwdiag = with python3Packages; toPythonApplication nwdiag;
|
||||
|
|
Loading…
Reference in a new issue