lol

libgphoto2: fix build of all camlibs

The camlibs `lumix` and `docupen` were excluded from compilation and
bundling due to the missing depdendencies.

authored by

Francesco Zanini and committed by
Alyssa Ross
ca09b01f 47fbfa2a

+28 -13
+28 -13
pkgs/development/libraries/libgphoto2/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, buildPackages 2 - , autoreconfHook, pkg-config, gettext 3 , libusb1 4 , libtool 5 , libexif 6 , libgphoto2 7 , libjpeg 8 }: 9 10 stdenv.mkDerivation rec { ··· 24 autoreconfHook 25 gettext 26 libtool 27 ]; 28 29 buildInputs = [ 30 libjpeg 31 libtool # for libltdl 32 libusb1 33 ]; 34 35 # These are mentioned in the Requires line of libgphoto's pkg-config file. ··· 37 38 hardeningDisable = [ "format" ]; 39 40 - postInstall = let 41 - executablePrefix = if stdenv.buildPlatform == stdenv.hostPlatform then 42 - "$out" 43 - else 44 - buildPackages.libgphoto2; 45 - in '' 46 - mkdir -p $out/lib/udev/rules.d 47 - ${executablePrefix}/lib/libgphoto2/print-camera-list \ 48 - udev-rules version 175 group camera \ 49 - >$out/lib/udev/rules.d/40-gphoto2.rules 50 - ''; 51 52 meta = { 53 homepage = "http://www.gphoto.org/proj/libgphoto2/";
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , buildPackages 5 + , autoreconfHook 6 + , pkg-config 7 + , gettext 8 , libusb1 9 , libtool 10 , libexif 11 , libgphoto2 12 , libjpeg 13 + , curl 14 + , libxml2 15 + , gd 16 }: 17 18 stdenv.mkDerivation rec { ··· 32 autoreconfHook 33 gettext 34 libtool 35 + pkg-config 36 ]; 37 38 buildInputs = [ 39 libjpeg 40 libtool # for libltdl 41 libusb1 42 + curl 43 + libxml2 44 + gd 45 ]; 46 47 # These are mentioned in the Requires line of libgphoto's pkg-config file. ··· 49 50 hardeningDisable = [ "format" ]; 51 52 + postInstall = 53 + let 54 + executablePrefix = 55 + if stdenv.buildPlatform == stdenv.hostPlatform then 56 + "$out" 57 + else 58 + buildPackages.libgphoto2; 59 + in 60 + '' 61 + mkdir -p $out/lib/udev/rules.d 62 + ${executablePrefix}/lib/libgphoto2/print-camera-list \ 63 + udev-rules version 175 group camera \ 64 + >$out/lib/udev/rules.d/40-gphoto2.rules 65 + ''; 66 67 meta = { 68 homepage = "http://www.gphoto.org/proj/libgphoto2/";