supergfxctl: 5.0.1 -> 5.1.1

authored by

Alexandre Acebedo and committed by
K900
ab709141 7319c3cf

+14 -3
+14 -3
pkgs/applications/system/supergfxctl/default.nix
··· 1 { lib 2 , rustPlatform 3 , fetchFromGitLab 4 , pkg-config 5 , systemd 6 }: 7 8 rustPlatform.buildRustPackage rec { 9 pname = "supergfxctl"; 10 - version = "5.0.1"; 11 12 src = fetchFromGitLab { 13 owner = "asus-linux"; 14 repo = "supergfxctl"; 15 rev = version; 16 - hash = "sha256-4q+7F8s6y+oDkBUKIBBsXZ2EtADcChdnjmABjBUnH9k="; 17 }; 18 19 - cargoSha256 = "sha256-nfs9sUq9569qXsC7JYMzrRPdQQm/l4HZANlG7827K8o="; 20 21 postPatch = '' 22 substituteInPlace data/supergfxd.service --replace /usr/bin/supergfxd $out/bin/supergfxd
··· 1 { lib 2 , rustPlatform 3 , fetchFromGitLab 4 + , fetchpatch 5 , pkg-config 6 , systemd 7 }: 8 9 rustPlatform.buildRustPackage rec { 10 pname = "supergfxctl"; 11 + version = "5.1.1"; 12 13 src = fetchFromGitLab { 14 owner = "asus-linux"; 15 repo = "supergfxctl"; 16 rev = version; 17 + hash = "sha256-AThaZ9dp5T/DtLPE6gZ9qgkw0xksiq+VCL9Y4G41voE="; 18 }; 19 20 + # fix reported version in Cargo.lock 21 + # submitted upstream: https://gitlab.com/asus-linux/supergfxctl/-/merge_requests/31 22 + # FIXME: remove for next update 23 + cargoPatches = [ 24 + (fetchpatch { 25 + url = "https://gitlab.com/asus-linux/supergfxctl/-/commit/8812dd208791d162881d72f785650a3344ec5151.diff"; 26 + hash = "sha256-eFFj2nIwGXHV1vMIpZvdvFPtfNLDfgqyGRt+VvB03LE="; 27 + }) 28 + ]; 29 + 30 + cargoSha256 = "sha256-gbRGUWfpCQjCxuTdQ+qwOeCDU17G3nNFkIPAgzmeL+E="; 31 32 postPatch = '' 33 substituteInPlace data/supergfxd.service --replace /usr/bin/supergfxd $out/bin/supergfxd