mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
picoscope: fix rules
eval
Without the change `picoscope.rules` failed to evaluate due to wrong attribute path: $ nix build --no-link -f. picoscope.rules error: attribute 'writeTextDir' missing 116| # users.users.you.extraGroups = [ "pico" ]; 117| passthru.rules = lib.writeTextDir "lib/udev/rules.d/95-pico.rules" '' | ^
This commit is contained in:
parent
ae9397e83b
commit
41941e7cf3
@ -1,5 +1,5 @@
|
||||
{ stdenv, lib, fetchurl, dpkg, makeWrapper , mono, gtk-sharp-3_0
|
||||
, glib, libusb1 , zlib, gtk3-x11, callPackage
|
||||
, glib, libusb1 , zlib, gtk3-x11, callPackage, writeTextDir
|
||||
, scopes ? [
|
||||
"picocv"
|
||||
"ps2000"
|
||||
@ -114,7 +114,7 @@ in stdenv.mkDerivation rec {
|
||||
# services.udev.packages = [ pkgs.picoscope.rules ];
|
||||
# users.groups.pico = {};
|
||||
# users.users.you.extraGroups = [ "pico" ];
|
||||
passthru.rules = lib.writeTextDir "lib/udev/rules.d/95-pico.rules" ''
|
||||
passthru.rules = writeTextDir "lib/udev/rules.d/95-pico.rules" ''
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ce9", MODE="664",GROUP="pico"
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user