handheld-daemon: patch generated udev rules to use chmod from nix store
This commit is contained in:
parent
2a8d54c511
commit
3b96a3c082
@ -5,6 +5,7 @@
|
||||
, lib
|
||||
, python3
|
||||
, toybox
|
||||
, coreutils
|
||||
}:
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "handheld-daemon";
|
||||
@ -38,6 +39,10 @@ python3.pkgs.buildPythonApplication rec {
|
||||
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=${ coreutils }/bin/chmod
|
||||
sed -i -e "s|/bin/chmod|$chmod|" src/hhd/controller/lib/hide.py
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
|
Loading…
Reference in New Issue
Block a user