From c9e8b7cf0260618682c15f7ba601ec9827396ceb Mon Sep 17 00:00:00 2001 From: Toast <39011842+toast003@users.noreply.github.com> Date: Mon, 15 Apr 2024 20:07:46 +0200 Subject: [PATCH] handheld-daemon: move udev rule comment --- pkgs/by-name/ha/handheld-daemon/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/ha/handheld-daemon/package.nix b/pkgs/by-name/ha/handheld-daemon/package.nix index 835c07744693..d79457057e39 100644 --- a/pkgs/by-name/ha/handheld-daemon/package.nix +++ b/pkgs/by-name/ha/handheld-daemon/package.nix @@ -34,12 +34,12 @@ python3.pkgs.buildPythonApplication rec { # handheld-daemon contains a fork of the python module `hid`, so this hook # is borrowed from the `hid` derivation. + # The generated udev rules point to /bin/chroot, which does not exist in NixOS postPatch = '' hidapi=${ hidapi }/lib/ test -d $hidapi || { echo "ERROR: $hidapi doesn't exist, please update/fix this build expression."; exit 1; } sed -i -e "s|libhidapi|$hidapi/libhidapi|" src/hhd/controller/lib/hid.py - # The generated udev rules point to /bin/chroot, which does not exist in NixOS chmod=${ toybox }/bin/chmod sed -i -e "s|/bin/chmod|$chmod|" src/hhd/controller/lib/hide.py '';