From 3a9fff70163987e736ba1c850e09cee47158f231 Mon Sep 17 00:00:00 2001 From: hot burger <33610620+hotburger@users.noreply.github.com> Date: Sat, 28 Sep 2024 18:28:55 -0700 Subject: [PATCH] also package sdcard rescan rules --- pkgs/jupiter-hw-support/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/jupiter-hw-support/default.nix b/pkgs/jupiter-hw-support/default.nix index f3f2e580..10941194 100644 --- a/pkgs/jupiter-hw-support/default.nix +++ b/pkgs/jupiter-hw-support/default.nix @@ -91,10 +91,12 @@ stdenv.mkDerivation { --replace-warn ". /usr/lib/hwsupport" ". $out/lib/hwsupport" mkdir -p $out/lib/udev/rules.d + cp usr/lib/udev/rules.d/99-steamos-automount.rules $out/lib/udev/rules.d + cp usr/lib/udev/rules.d/99-sdcard-rescan.rules $out/lib/udev/rules.d - substitute usr/lib/udev/rules.d/99-steamos-automount.rules $out/lib/udev/rules.d/99-steamos-automount.rules \ - --replace-warn "/bin/systemd-run" "${systemd}/bin/systemd-run" \ - --replace-warn "/usr/lib/hwsupport" "$out/lib/hwsupport" + substituteInPlace $out/lib/udev/rules.d/*.rules \ + --replace-fail "/bin/systemd-run" "${systemd}/bin/systemd-run" \ + --replace-fail "/usr/lib/hwsupport" "$out/lib/hwsupport" ${resholve.phraseSolution "jupiter-hw-support" solution}