mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
asusctl: 4.7.2 -> 5.0.0
This commit is contained in:
parent
1ec772ee91
commit
6de3122f43
1021
pkgs/applications/system/asusctl/Cargo.lock
generated
1021
pkgs/applications/system/asusctl/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user