17 rustPlatform.buildRustPackage rec {
21 src = fetchFromGitLab {
25 hash = "sha256-fod3ZkJktmJGHF8nSSp9lVMg/qYKQd4EiauFGTSvbsg=";
29 lockFile = ./Cargo.lock;
31 "const-field-offset-0.1.5" = "sha256-QtlvLwe27tLLdWhqiKzXoUvBsBcZbfwY84jXUduzCKw=";
32 "supergfxctl-5.2.4" = "sha256-MQJJaTajPQ45BU6zyMx0Wwf7tAPcT4EURWWbZxrbGzE=";
38 asusd-user/src/config.rs
39 asusd-user/src/daemon.rs
40 asusd/src/ctrl_anime/config.rs
41 rog-aura/src/aura_detection.rs
42 rog-control-center/src/lib.rs
43 rog-control-center/src/main.rs
44 rog-control-center/src/tray.rs
46 for file in $files; do
47 substituteInPlace $file --replace /usr/share $out/share
50 substituteInPlace data/asusd.rules --replace systemctl ${systemd}/bin/systemctl
51 substituteInPlace data/asusd.service \
52 --replace /usr/bin/asusd $out/bin/asusd \
53 --replace /bin/sleep ${coreutils}/bin/sleep
54 substituteInPlace data/asusd-user.service \
55 --replace /usr/bin/asusd-user $out/bin/asusd-user \
56 --replace /usr/bin/sleep ${coreutils}/bin/sleep
58 substituteInPlace Makefile \
59 --replace /usr/bin/grep ${lib.getExe gnugrep}
62 nativeBuildInputs = [ pkg-config ];
75 # force linking to all the dlopen()ed dependencies
76 RUSTFLAGS = map (a: "-C link-arg=${a}") [
77 "-Wl,--push-state,--no-as-needed"
84 # upstream has minimal tests, so don't rebuild twice
88 make prefix=$out install-data
92 description = "Control daemon, CLI tools, and a collection of crates for interacting with ASUS ROG laptops";
93 homepage = "https://gitlab.com/asus-linux/asusctl";
94 license = licenses.mpl20;
95 platforms = [ "x86_64-linux" ];
96 maintainers = with maintainers; [ k900 aacebedo ];