2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config
|
2020-12-07 07:45:13 +00:00
|
|
|
, gettext
|
|
|
|
, libexif
|
|
|
|
, libgphoto2
|
|
|
|
, libjpeg
|
|
|
|
, libtool
|
|
|
|
, popt
|
|
|
|
, readline
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-12-07 07:45:13 +00:00
|
|
|
pname = "gphoto2";
|
2021-03-15 08:37:03 +00:00
|
|
|
version = "2.5.27";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gphoto";
|
|
|
|
repo = "gphoto2";
|
|
|
|
rev = "v${version}";
|
2021-03-15 08:37:03 +00:00
|
|
|
sha256 = "sha256-zzlyA2IedyBZ4/TdSmrqbe2le8rFMQ6tY6jF5skJ7l4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-12-07 07:45:13 +00:00
|
|
|
gettext
|
|
|
|
libtool
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libexif
|
|
|
|
libgphoto2
|
|
|
|
libjpeg
|
|
|
|
popt
|
|
|
|
readline
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A ready to use set of digital camera software applications";
|
|
|
|
longDescription = ''
|
|
|
|
|
|
|
|
A set of command line utilities for manipulating over 1400 different
|
|
|
|
digital cameras. Through libgphoto2, it supports PTP, MTP, and much more..
|
|
|
|
|
|
|
|
'';
|
|
|
|
homepage = "http://www.gphoto.org/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.jcumming ];
|
|
|
|
};
|
|
|
|
}
|