gphoto2: Switch to Github, allow building from repo.

Github is where upstream's development happens now,
and building from repo makes adding patches and overriding the commit easier.

Also use pname+version, see #103997.
This commit is contained in:
Niklas Hambüchen 2020-11-16 22:41:52 +01:00
parent 25b7b8895c
commit 58957e42be

View File

@ -1,17 +1,38 @@
{ stdenv, fetchurl, pkgconfig, libgphoto2, libexif, popt, gettext { stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
, libjpeg, readline, libtool , gettext
, libexif
, libgphoto2
, libjpeg
, libtool
, popt
, readline
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gphoto2-2.5.26"; pname = "gphoto2";
version = "2.5.26";
src = fetchurl { src = fetchFromGitHub {
url = "mirror://sourceforge/gphoto/${name}.tar.bz2"; owner = "gphoto";
sha256 = "0bxbcn31xalsvjp8fra324hf2105y3ps7zlyfz11v71j0lxj2lvn"; repo = "gphoto2";
rev = "v${version}";
sha256 = "1w01j3qvjl2nlfs38rnsmjvn3r0r2xf7prxz1i6yarbpj3fzwqqc";
}; };
nativeBuildInputs = [ pkgconfig gettext libtool ]; nativeBuildInputs = [
buildInputs = [ libgphoto2 libexif popt libjpeg readline ]; autoreconfHook
pkgconfig
gettext
libtool
];
buildInputs = [
libexif
libgphoto2
libjpeg
popt
readline
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A ready to use set of digital camera software applications"; description = "A ready to use set of digital camera software applications";