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

gphoto2: nixos programs module to configure udev #21444

Merged
merged 1 commit into from Jan 1, 2017

Conversation

league
Copy link
Contributor

@league league commented Dec 27, 2016

Closes #21420.

Motivation for this change

See #21420: I plugged in my digital camera and could not run gphoto2 to download images as regular user due to insufficient permissions. This adds a NixOS option programs.gphoto2.enable that installs not just gphoto2, but also a file of udev rules for setting the group ownership of a plugged-in camera to camera.

Tested on my NixOS 16.09.git.9db36f2 and then applied changes to master.

First contribution, happy to learn and fix anything to follow standards better.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • (N/A) macOS
    • Linux
  • (N/A) Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • (N/A) Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@league, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @bjornfor and @offlinehacker to be potential reviewers.

@bjornfor
Copy link
Contributor

I'd just add the udev rules to the original gphoto2 package (instead of separate package). Otherwise it looks good to me.

@league
Copy link
Contributor Author

league commented Dec 27, 2016

@bjornfor Thanks for the suggestion. Latest commit does just that. Wait for Travis, and then ready to merge, AFAICT.

@Mic92 Mic92 merged commit 84a5008 into NixOS:master Jan 1, 2017
@Mic92
Copy link
Member

Mic92 commented Jan 1, 2017

Thanks!

@league league deleted the fix/gphoto2-udev branch March 4, 2017 03:51
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.

gphoto2: insufficient permissions (includes workaround)
5 participants