python312Packages.vdf: avoid using pname for src.repo
[NixPkgs.git] / pkgs / os-specific / linux / fanctl / default.nix
blob072ecda1e38fa3c0d182a6126122c247c5154601
1 { lib, fetchFromGitLab, rustPlatform }:
3 rustPlatform.buildRustPackage rec {
4   version = "0.6.4";
5   pname = "fanctl";
7   src = fetchFromGitLab {
8     owner = "mcoffin";
9     repo = pname;
10     rev = "v${version}";
11     hash = "sha256-XmawybmqRJ9Lj6ii8TZBFwqdQZVp0pOLN4xiSLkU/bw=";
12   };
14   cargoHash = "sha256-tj00DXQEqC/8+3uzTMWcph+1fNTTVZLSJbV/5lLFkFs=";
16   meta = with lib; {
17     description = "Replacement for fancontrol with more fine-grained control interface in its config file";
18     mainProgram = "fanctl";
19     homepage = "https://gitlab.com/mcoffin/fanctl";
20     license = licenses.gpl3Only;
21     maintainers = with maintainers; [ icewind1991 ];
22     platforms = platforms.linux;
23   };