3
0
Fork 0
forked from mirrors/nixpkgs

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