handheld-daemon: format with nixfmt-rfc-style
This commit is contained in:
parent
f7b450a4d8
commit
a581a28a07
|
@ -1,10 +1,11 @@
|
|||
{ config
|
||||
, fetchFromGitHub
|
||||
, hidapi
|
||||
, kmod
|
||||
, lib
|
||||
, python3
|
||||
, toybox
|
||||
{
|
||||
config,
|
||||
fetchFromGitHub,
|
||||
hidapi,
|
||||
kmod,
|
||||
lib,
|
||||
python3,
|
||||
toybox,
|
||||
}:
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "handheld-daemon";
|
||||
|
@ -35,12 +36,12 @@ python3.pkgs.buildPythonApplication rec {
|
|||
postPatch = ''
|
||||
# handheld-daemon contains a fork of the python module `hid`, so this hook
|
||||
# is borrowed from the `hid` derivation.
|
||||
hidapi=${ hidapi }/lib/
|
||||
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/chmod, which does not exist in NixOS
|
||||
chmod=${ toybox }/bin/chmod
|
||||
chmod=${toybox}/bin/chmod
|
||||
sed -i -e "s|/bin/chmod|$chmod|" src/hhd/controller/lib/hide.py
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in New Issue