seabreeze: udev rules not installed

fixes #82229
This commit is contained in:
Stewart Mackenzie 2020-03-11 14:28:51 +08:00
parent 6bba9428d9
commit 5a93edc108

View File

@ -6,8 +6,9 @@
}: }:
## Usage ## Usage
# In NixOS, simply add the `udev` multiple output to services.udev.packages: # In NixOS, add the package to services.udev.packages for non-root plugdev
# services.udev.packages = [ pkgs.python3Packages.seabreeze.udev ]; # users to get device access permission:
# services.udev.packages = [ pkgs.python3Packages.seabreeze ];
buildPythonPackage rec { buildPythonPackage rec {
pname = "seabreeze"; pname = "seabreeze";
@ -20,11 +21,9 @@ buildPythonPackage rec {
sha256 = "0bc2s9ic77gz9m40w89snixphxlzib60xa4f49n4zasjrddfz1l8"; sha256 = "0bc2s9ic77gz9m40w89snixphxlzib60xa4f49n4zasjrddfz1l8";
}; };
outputs = [ "out" "udev" ];
postInstall = '' postInstall = ''
mkdir -p $udev/lib/udev/rules.d mkdir -p $out/etc/udev/rules.d
cp misc/10-oceanoptics.rules $udev/lib/udev/rules.d/10-oceanoptics.rules cp misc/10-oceanoptics.rules $out/etc/udev/rules.d/10-oceanoptics.rules
''; '';
# underlying c libraries are tested and fail # underlying c libraries are tested and fail