From 02353e4a10598202226d4eac6a5174d5cdb282e4 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Mon, 13 Aug 2018 00:45:46 -0400 Subject: [PATCH] libplist: 2.0.0 -> 2018-07-25 --- .../libraries/libplist/default.nix | 42 ++++++++++++------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/pkgs/development/libraries/libplist/default.nix b/pkgs/development/libraries/libplist/default.nix index 8dc64f2c2b57..0d6e3b8db6e0 100644 --- a/pkgs/development/libraries/libplist/default.nix +++ b/pkgs/development/libraries/libplist/default.nix @@ -1,31 +1,41 @@ -{ stdenv, fetchurl, pkgconfig, swig2, python2Packages, glib }: +{ stdenv, autoreconfHook, fetchFromGitHub, pkgconfig, python2Packages, glib }: let inherit (python2Packages) python cython; -in stdenv.mkDerivation rec { - name = "libplist-${version}"; - version = "2.0.0"; +in +stdenv.mkDerivation rec { + pname = "libplist"; + version = "2018-07-25"; - nativeBuildInputs = [ pkgconfig swig2 python cython ]; + name = "${pname}-${version}"; - propagatedBuildInputs = [ glib ]; - - passthru.swig = swig2; + src = fetchFromGitHub { + owner = "libimobiledevice"; + repo = pname; + rev = "db68a9d1070b363eee93147f072f46526064acbc"; + sha256 = "0lxyb35jjg31m8dxhsv1jr2ccy5s19fsqzisy7lfjk46w7brs4h5"; + }; outputs = ["bin" "dev" "out" "py"]; + nativeBuildInputs = [ + pkgconfig + python + cython + autoreconfHook + ]; + + propagatedBuildInputs = [ glib ]; + postFixup = '' moveToOutput "lib/${python.libPrefix}" "$py" ''; - src = fetchurl { - url = "https://www.libimobiledevice.org/downloads/${name}.tar.bz2"; - sha256 = "00pnh9zf3iwdji2faccns7vagbmbrwbj9a8zp9s53a6rqaa9czis"; - }; - - meta = { - homepage = https://github.com/JonathanBeck/libplist; - platforms = stdenv.lib.platforms.all; + meta = with stdenv.lib; { + description = "A library to handle Apple Property List format in binary or XML"; + homepage = https://github.com/libimobiledevice/libplist; + license = licenses.lgpl21Plus; maintainers = [ ]; + platforms = platforms.linux; }; }