mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
qFlipper: use udev rules from upstream instead of inlining them in nixpkgs
This commit is contained in:
parent
cff31d3d97
commit
41120b50de
@ -28,13 +28,6 @@ let
|
||||
timestamp = "99999999999";
|
||||
commit = "nix-${version}";
|
||||
|
||||
udev_rules = ''
|
||||
#Flipper Zero serial port
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", ATTRS{manufacturer}=="Flipper Devices Inc.", TAG+="uaccess"
|
||||
#Flipper Zero DFU
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", ATTRS{manufacturer}=="STMicroelectronics", TAG+="uaccess"
|
||||
'';
|
||||
|
||||
in
|
||||
mkDerivation {
|
||||
inherit pname version;
|
||||
@ -92,9 +85,7 @@ mkDerivation {
|
||||
cp qFlipper-cli $out/bin
|
||||
|
||||
mkdir -p $out/etc/udev/rules.d
|
||||
tee $out/etc/udev/rules.d/42-flipperzero.rules << EOF
|
||||
${udev_rules}
|
||||
EOF
|
||||
cp installer-assets/udev/42-flipperzero.rules $out/etc/udev/rules.d/
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script {
|
||||
|
Loading…
Reference in New Issue
Block a user