Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

realsense + examples + udev rules #87503

Closed
wants to merge 1 commit into from

Conversation

MarcWeber
Copy link
Contributor

realsense-viewer still complains about udev rules being outdated cause it seems to byte compare with the patched version. But it seems to work.

hardware.intel.realsense.enable = mkOption {
type = types.boolean;
default = false;
description = '' Enable (intel) librealsense udev rules '';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description = '' Enable (intel) librealsense udev rules '';
description = ''
Enable (intel) librealsense udev rules
'';

chmod +x $udev_bins_path/*
cp config/99-realsense-libusb.rules $out/lib/udev/rules.d/99-realsense-libusb.rules
sed -i -e "s@/usr/local/bin/\\(usb-R200-in_udev\\|usb-R200-in\\)@$udev_bins_path/\\1@" -e "s@/bin/sh@$(type -p sh)@" $udev_bins_path/* $out/lib/udev/rules.d/99-realsense-libusb.rules
'';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good. Please open an issue upstream, fix indentation, and link in a comment here to the issue upstream.

}:

# See ./nixos/modules/hardware/intel-realsense.nix's option to also get udev rules
# TODO: turn buildExamples into multi output derivation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd advise to do this before we'd continue the review.

hardware.intel.realsense.package = mkOption {
type = types.package;
default = pkgs.librealsenseWithExamples;
description = '' use pkgs.librealsense to avoid examples. The examples for instance contain realsense-viewer.'';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description = '' use pkgs.librealsense to avoid examples. The examples for instance contain realsense-viewer.'';
description = ''
The librealsense package to use.
'';
example = pkgs.librealsenseWithCuda;


hardware.intel.realsense.package = mkOption {
type = types.package;
default = pkgs.librealsenseWithExamples;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default = pkgs.librealsenseWithExamples;
default = pkgs.librealsense;

@doronbehar
Copy link
Contributor

Note the merge conflicts. Also please check whether the examples by any chance retain references to stdenv.cc.cc.

@stale
Copy link

stale bot commented Apr 7, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Apr 7, 2021
@doronbehar
Copy link
Contributor

No response to reviews and no compliance to https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md, closing.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Apr 7, 2021
@doronbehar doronbehar closed this Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants