1 { lib, rustPlatform, fetchFromGitHub, libXNVCtrl, libX11, libXext }:
3 rustPlatform.buildRustPackage rec {
4 pname = "nvfancontrol";
7 src = fetchFromGitHub {
11 sha256 = "sha256-0WBQSnTYVc3sNmZf/KFzznMg9AVsyaBgdx/IvG1dZAw=";
14 cargoHash = "sha256-fEzdghGQSSeyeyiHjw1ggQ38gsETJFl9bq/tizGxIis=";
16 nativeBuildInputs = [ libXNVCtrl libX11 libXext ];
18 # Needed for static linking
20 export LIBRARY_PATH=${libXNVCtrl}/lib:${libX11}/lib:${libXext}/lib
24 description = "Nvidia dynamic fan control for Linux";
25 homepage = "https://github.com/foucault/nvfancontrol";
26 changelog = "https://github.com/foucault/nvfancontrol/releases/tag/${version}";
27 license = with licenses; [ gpl3Only ];
28 platforms = platforms.linux;
29 maintainers = with maintainers; [ devins2518 ];
30 mainProgram = "nvfancontrol";