asusctl: 4.7.2 -> 5.0.0

This commit is contained in:
K900 2023-12-12 21:47:42 +03:00
parent 1ec772ee91
commit 6de3122f43
2 changed files with 614 additions and 417 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,6 @@
{ lib
, rustPlatform
, fetchFromGitLab
, e2fsprogs
, systemd
, coreutils
, pkg-config
@ -9,17 +8,18 @@
, fontconfig
, gtk3
, libappindicator
, libGL
}:
rustPlatform.buildRustPackage rec {
pname = "asusctl";
version = "4.7.2";
version = "5.0.0";
src = fetchFromGitLab {
owner = "asus-linux";
repo = "asusctl";
rev = version;
hash = "sha256-q4V0Cn6kZeyIMGxu/blVi/Ot8LIcv+GlZhpkTQNTjRU=";
hash = "sha256-ZdPSUXchQ19awvlNFVih38p6AU7KQ2RttUnm8zQnTWs=";
};
cargoHash = "";
@ -44,8 +44,6 @@ rustPlatform.buildRustPackage rec {
substituteInPlace $file --replace /usr/share $out/share
done
substituteInPlace asusd/src/ctrl_platform.rs --replace /usr/bin/chattr ${e2fsprogs}/bin/chattr
substituteInPlace data/asusd.rules --replace systemctl ${systemd}/bin/systemctl
substituteInPlace data/asusd.service \
--replace /usr/bin/asusd $out/bin/asusd \
@ -67,7 +65,7 @@ rustPlatform.buildRustPackage rec {
'';
postFixup = ''
patchelf --add-rpath "${libappindicator}/lib" "$out/bin/rog-control-center"
patchelf --add-rpath "${libappindicator}/lib:${libGL}/lib" "$out/bin/rog-control-center"
'';
meta = with lib; {