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