summary refs log tree commit diff
path: root/pkgs/development/libraries/libgphoto2
diff options
context:
space:
mode:
authorChristopher League <league@contrapunctus.net>2016-12-27 13:39:53 -0500
committerChristopher League <league@contrapunctus.net>2016-12-27 17:47:38 -0500
commit6eead52e1252413ea835fa1261bbf73ff569d23d (patch)
treefedfb30ca32a4ce4c0a12dd2c0fb3e3ff27c997a /pkgs/development/libraries/libgphoto2
parent02c65bdac919fcb0cecc1a157744156ed39b9fc6 (diff)
downloadnixpkgs-6eead52e1252413ea835fa1261bbf73ff569d23d.tar
nixpkgs-6eead52e1252413ea835fa1261bbf73ff569d23d.tar.gz
nixpkgs-6eead52e1252413ea835fa1261bbf73ff569d23d.tar.bz2
nixpkgs-6eead52e1252413ea835fa1261bbf73ff569d23d.tar.lz
nixpkgs-6eead52e1252413ea835fa1261bbf73ff569d23d.tar.xz
nixpkgs-6eead52e1252413ea835fa1261bbf73ff569d23d.tar.zst
nixpkgs-6eead52e1252413ea835fa1261bbf73ff569d23d.zip
gphoto2: nixos programs module to configure udev
Closes #21420.
Diffstat (limited to 'pkgs/development/libraries/libgphoto2')
-rw-r--r--pkgs/development/libraries/libgphoto2/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libgphoto2/default.nix b/pkgs/development/libraries/libgphoto2/default.nix
index 68736608ad4..e9b6968d13b 100644
--- a/pkgs/development/libraries/libgphoto2/default.nix
+++ b/pkgs/development/libraries/libgphoto2/default.nix
@@ -25,6 +25,11 @@ stdenv.mkDerivation rec {
 
   hardeningDisable = [ "format" ];
 
+  postInstall = ''
+    mkdir -p $out/lib/udev/rules.d
+    $out/lib/libgphoto2/print-camera-list udev-rules version 175 group camera >$out/lib/udev/rules.d/40-gphoto2.rules
+  '';
+
   meta = {
     homepage = http://www.gphoto.org/proj/libgphoto2/;
     description = "A library for accessing digital cameras";
@@ -41,4 +46,3 @@ stdenv.mkDerivation rec {
     maintainers = with stdenv.lib.maintainers; [ jcumming ];
   };
 }
-