Merge pull request #104000 from nh2/gphoto-libmtp-from-repo
libmtp, libgphoto2, gphoto2: Switch to Github, allow building from repo
This commit is contained in:
commit
76aac1eaf3
@ -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";
|
||||||
|
@ -1,19 +1,34 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgconfig, libusb1, libtool, libexif, libjpeg, gettext, autoreconfHook }:
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, gettext
|
||||||
|
, libusb1
|
||||||
|
, libtool
|
||||||
|
, libexif
|
||||||
|
, libjpeg
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libgphoto2-${meta.version}";
|
pname = "libgphoto2";
|
||||||
|
version = "2.5.23";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "gphoto";
|
owner = "gphoto";
|
||||||
repo = "libgphoto2";
|
repo = "libgphoto2";
|
||||||
rev = meta.tag;
|
rev = "libgphoto2-${builtins.replaceStrings [ "." ] [ "_" ] version}-release";
|
||||||
sha256 = "1sc2ycx11khf0qzp1cqxxx1qymv6bjfbkx3vvbwz6wnbyvsigxz2";
|
sha256 = "1sc2ycx11khf0qzp1cqxxx1qymv6bjfbkx3vvbwz6wnbyvsigxz2";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [];
|
patches = [];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig gettext autoreconfHook ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ libtool libjpeg libusb1 ];
|
autoreconfHook
|
||||||
|
pkgconfig
|
||||||
|
gettext
|
||||||
|
libtool
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
libjpeg
|
||||||
|
libusb1
|
||||||
|
];
|
||||||
|
|
||||||
# These are mentioned in the Requires line of libgphoto's pkg-config file.
|
# These are mentioned in the Requires line of libgphoto's pkg-config file.
|
||||||
propagatedBuildInputs = [ libexif ];
|
propagatedBuildInputs = [ libexif ];
|
||||||
@ -33,8 +48,6 @@ stdenv.mkDerivation rec {
|
|||||||
MTP, and other vendor specific protocols for controlling and transferring data
|
MTP, and other vendor specific protocols for controlling and transferring data
|
||||||
from digital cameras.
|
from digital cameras.
|
||||||
'';
|
'';
|
||||||
version = "2.5.23";
|
|
||||||
tag = "libgphoto2-2_5_23-release";
|
|
||||||
# XXX: the homepage claims LGPL, but several src files are lgpl21Plus
|
# XXX: the homepage claims LGPL, but several src files are lgpl21Plus
|
||||||
license = stdenv.lib.licenses.lgpl21Plus;
|
license = stdenv.lib.licenses.lgpl21Plus;
|
||||||
platforms = with stdenv.lib.platforms; unix;
|
platforms = with stdenv.lib.platforms; unix;
|
||||||
|
@ -1,18 +1,40 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, libusb1, libiconv }:
|
{ stdenv, fetchFromGitHub, autoconf, automake, gettext, libtool, pkgconfig
|
||||||
|
, libusb1
|
||||||
|
, libiconv
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libmtp-1.1.18";
|
pname = "libmtp";
|
||||||
|
version = "1.1.18";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "mirror://sourceforge/libmtp/${name}.tar.gz";
|
owner = "libmtp";
|
||||||
sha256 = "1w41l93yi0dmw218daiw36rylkc8rammxx37csh1ij24q18gx03j";
|
repo = "libmtp";
|
||||||
|
rev = "libmtp-${builtins.replaceStrings [ "." ] [ "-" ] version}";
|
||||||
|
sha256 = "0lniy0xq397zddlhsv6n4qjn0wwakli5p3ydzxmbzn0z0jgngjja";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "bin" "dev" "out" ];
|
outputs = [ "bin" "dev" "out" ];
|
||||||
|
|
||||||
buildInputs = [ libiconv ];
|
nativeBuildInputs = [
|
||||||
propagatedBuildInputs = [ libusb1 ];
|
autoconf
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
automake
|
||||||
|
gettext
|
||||||
|
libtool
|
||||||
|
pkgconfig
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
libiconv
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
libusb1
|
||||||
|
];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
./autogen.sh
|
||||||
|
'';
|
||||||
|
|
||||||
# tried to install files to /lib/udev, hopefully OK
|
# tried to install files to /lib/udev, hopefully OK
|
||||||
configureFlags = [ "--with-udev=$$bin/lib/udev" ];
|
configureFlags = [ "--with-udev=$$bin/lib/udev" ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user