Update libgphoto2 - fix gphotofs

+12 -2
+3 -2
pkgs/development/libraries/libgphoto2/default.nix
··· 1 1 {stdenv, fetchurl, pkgconfig, libusb, libtool, libexif, libjpeg, gettext}: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "libgphoto2-2.4.14"; 4 + name = "libgphoto2-${meta.version}"; 5 5 6 6 src = fetchurl { 7 7 url = "mirror://sourceforge/gphoto/${name}.tar.bz2"; 8 - sha256 = "14h20s0kwqr1nsj90dgjwzs0r3h7z1cpmnivrikd0rrg4m2jvcsr"; 8 + sha256 = "0f1818l1vs5fbmrihzyv3qasddbqi3r01jik5crrxddwalsi2bd3"; 9 9 }; 10 10 11 11 nativeBuildInputs = [ pkgconfig gettext ]; ··· 22 22 MTP, and other vendor specific protocols for controlling and transferring data 23 23 from digital cameras. 24 24 ''; 25 + version = "2.5.2"; 25 26 # XXX: the homepage claims LGPL, but several src files are lgpl21Plus 26 27 license = stdenv.lib.licenses.lgpl21Plus; 27 28 platforms = with stdenv.lib.platforms; unix;
+9
pkgs/development/libraries/libgphoto2/default.upstream
··· 1 + url http://sourceforge.net/projects/gphoto/files/libgphoto/ 2 + SF_version_dir 3 + version_link '[.]tar[.]bz2/download$' 4 + SF_redirect 5 + do_overwrite () { 6 + ensure_hash 7 + set_var_value version "$CURRENT_VERSION" 8 + set_var_value sha256 "$CURRENT_HASH" 9 + }