at v206 32 lines 1.1 kB view raw
1{ stdenv, fetchurl, pkgconfig, libusb1, libtool, libexif, libjpeg, gettext }: 2 3stdenv.mkDerivation rec { 4 name = "libgphoto2-${meta.version}"; 5 6 src = fetchurl { 7 url = "mirror://sourceforge/gphoto/${name}.tar.bz2"; 8 sha256 = "1di7iv2r5ghzrylfbpvp694gpqbwjj3ngrmg4kvl7big6hp2c6h3"; 9 }; 10 11 nativeBuildInputs = [ pkgconfig gettext ]; 12 buildInputs = [ libtool libjpeg libusb1 ]; 13 14 # These are mentioned in the Requires line of libgphoto's pkg-config file. 15 propagatedBuildInputs = [ libexif ]; 16 17 meta = { 18 homepage = http://www.gphoto.org/proj/libgphoto2/; 19 description = "A library for accessing digital cameras"; 20 longDescription = '' 21 This is the library backend for gphoto2. It contains the code for PTP, 22 MTP, and other vendor specific protocols for controlling and transferring data 23 from digital cameras. 24 ''; 25 version = "2.5.8"; 26 # XXX: the homepage claims LGPL, but several src files are lgpl21Plus 27 license = stdenv.lib.licenses.lgpl21Plus; 28 platforms = with stdenv.lib.platforms; unix; 29 maintainers = with stdenv.lib.maintainers; [ jcumming ]; 30 }; 31} 32