diff options
author | Alexandre Acebedo <alexandre@acebedo.fr> | 2023-04-29 17:45:16 +0200 |
---|---|---|
committer | K900 <me@0upti.me> | 2023-04-30 21:35:28 +0300 |
commit | ab709141dfc4fdd52330a7638a6dc3cb39920457 (patch) | |
tree | a23c8957e4a8dd9d04091a660d8871068677021c /pkgs/applications/system | |
parent | 7319c3cf9a7057f6904afc4b090bf17e0acadd16 (diff) |
supergfxctl: 5.0.1 -> 5.1.1
Diffstat (limited to 'pkgs/applications/system')
-rw-r--r-- | pkgs/applications/system/supergfxctl/default.nix | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/pkgs/applications/system/supergfxctl/default.nix b/pkgs/applications/system/supergfxctl/default.nix index f1a88e39e4e73..76fcfb459a629 100644 --- a/pkgs/applications/system/supergfxctl/default.nix +++ b/pkgs/applications/system/supergfxctl/default.nix @@ -1,22 +1,33 @@ { lib , rustPlatform , fetchFromGitLab +, fetchpatch , pkg-config , systemd }: rustPlatform.buildRustPackage rec { pname = "supergfxctl"; - version = "5.0.1"; + version = "5.1.1"; src = fetchFromGitLab { owner = "asus-linux"; repo = "supergfxctl"; rev = version; - hash = "sha256-4q+7F8s6y+oDkBUKIBBsXZ2EtADcChdnjmABjBUnH9k="; + hash = "sha256-AThaZ9dp5T/DtLPE6gZ9qgkw0xksiq+VCL9Y4G41voE="; }; - cargoSha256 = "sha256-nfs9sUq9569qXsC7JYMzrRPdQQm/l4HZANlG7827K8o="; + # fix reported version in Cargo.lock + # submitted upstream: https://gitlab.com/asus-linux/supergfxctl/-/merge_requests/31 + # FIXME: remove for next update + cargoPatches = [ + (fetchpatch { + url = "https://gitlab.com/asus-linux/supergfxctl/-/commit/8812dd208791d162881d72f785650a3344ec5151.diff"; + hash = "sha256-eFFj2nIwGXHV1vMIpZvdvFPtfNLDfgqyGRt+VvB03LE="; + }) + ]; + + cargoSha256 = "sha256-gbRGUWfpCQjCxuTdQ+qwOeCDU17G3nNFkIPAgzmeL+E="; postPatch = '' substituteInPlace data/supergfxd.service --replace /usr/bin/supergfxd $out/bin/supergfxd |