parent
6bba9428d9
commit
5a93edc108
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user