Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 29 lines 718 B view raw
1{ 2 rustPlatform, 3 fetchFromGitHub, 4 lib, 5}: 6let 7 version = "0.1.1"; 8in 9rustPlatform.buildRustPackage { 10 pname = "pid-fan-controller"; 11 inherit version; 12 13 src = fetchFromGitHub { 14 owner = "zimward"; 15 repo = "pid-fan-controller"; 16 rev = version; 17 hash = "sha256-ALR9Qa0AhcGyc3+7x5CEG/72+bJzhaEoIvQNL+QjldY="; 18 }; 19 cargoHash = "sha256-Y57VSheI94b43SwNCDdFvcNxzkA16KObBvzZ6ywYAyU="; 20 21 meta = { 22 description = "Service to provide closed-loop PID fan control"; 23 homepage = "https://github.com/zimward/pid-fan-controller"; 24 license = lib.licenses.gpl3Only; 25 maintainers = with lib.maintainers; [ zimward ]; 26 platforms = lib.platforms.linux; 27 mainProgram = "pid-fan-controller"; 28 }; 29}