git.iko.soy/typeable/nixpkgs
on master help sign in
libimobiledevice: 1.2.0 -> 2018-07-24
commit8842e434777d329e19b5e7a84c4bd72580532d2c authorworldofpeace <worldofpeace@users.noreply.github.com> dateMon 13 Aug 2018, 00:48 (8 years ago) parentd4d5068
1 file changed+42−25
pkgs/development/libraries/libimobiledevice/default.nix+42−25
pkgs/development/libraries/libimobiledevice/default.nix+42−25
@@ -1,32 +1,46 @@
1−{ stdenv, fetchurl, fetchpatch, python2, pkgconfig, usbmuxd, glib, libgcrypt,
2− libtasn1, libplist, readline, libusbmuxd, openssl }:
1+{ stdenv, fetchFromGitHub, automake, autoconf, libtool, pkgconfig, gnutls
2+, libgcrypt, libtasn1, glib, libplist, libusbmuxd }:
33
44stdenv.mkDerivation rec {
5− name = "libimobiledevice-1.2.0";
6−
7− nativeBuildInputs = [ python2 libplist.swig pkgconfig ];
8− buildInputs = [ readline ];
9− propagatedBuildInputs = [ libusbmuxd glib libgcrypt libtasn1 libplist openssl ];
10−
11− patches = [
12− ./disable_sslv3.patch
13− (fetchpatch {
14− name = "CVE-2016-5104.patch";
15− url = "https://github.com/libimobiledevice/libimobiledevice/commit/df1f5c4d70d0c19ad40072f5246ca457e7f9849e.patch";
16− sha256 = "06ygb9aqcvm4v08wrldsddjgyqv5bkpq6lxzq2a1nwqp9mq4a4k1";
17− })
18− ];
5+ pname = "libimobiledevice";
6+ version = "2018-07-24";
197
20− postPatch = ''sed -e 's@1\.3\.21@@' -i configure'';
21− passthru.swig = libplist.swig;
8+ name = "${pname}-${version}";
229
23− src = fetchurl {
24− url = "${meta.homepage}/downloads/${name}.tar.bz2";
25− sha256 = "0dqhy4qwj30mw8pwckvjmgnj1qqrh6p8c6jknmhvylshhzh0ssvq";
10+ src = fetchFromGitHub {
11+ owner = pname;
12+ repo = pname;
13+ rev = "d7a2e04d2e7880c56116fd35489a7f98755501b7";
14+ sha256 = "0cj0j10lmfr28c7nh79n2mcmy31xx50g93h0bqs0l7y76ph4dqkc";
2615 };
2716
28− meta = {
29− homepage = http://www.libimobiledevice.org;
17+ outputs = [ "out" "dev" ];
18+
19+ nativeBuildInputs = [
20+ autoconf
21+ automake
22+ libtool
23+ pkgconfig
24+ ];
25+ propagatedBuildInputs = [
26+ glib
27+ gnutls
28+ libgcrypt
29+ libplist
30+ libtasn1
31+ libusbmuxd
32+ ];
33+
34+ preConfigure = "NOCONFIGURE=1 ./autogen.sh";
35+
36+ configureFlags = [
37+ "--disable-static"
38+ "--disable-openssl"
39+ "--without-cython"
40+ ];
41+
42+ meta = with stdenv.lib; {
43+ homepage = https://github.com/libimobiledevice/libimobiledevice;
3044 description = "A software library that talks the protocols to support iPhone®, iPod Touch® and iPad® devices on Linux";
3145 longDescription = ''
3246 libimobiledevice is a software library that talks the protocols to support
@@ -38,7 +52,10 @@ stdenv.mkDerivation rec {
3852 installed applications, retrieve addressbook/calendars/notes and bookmarks
3953 and synchronize music and video to the device. The library is in
4054 development since August 2007 with the goal to bring support for these
41− devices to the Linux Desktop.'';
42− inherit (usbmuxd.meta) platforms maintainers;
55+ devices to the Linux Desktop.
56+ '';
57+ license = licenses.lgpl21Plus;
58+ platforms = platforms.linux;
59+ maintainers = with maintainers; [ ];
4360 };
4461}