2016-11-09 15:01:28 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libxml2, swig2, python2Packages, glib }:
|
2010-09-26 21:39:21 +02:00
|
|
|
|
2016-11-09 15:01:28 +01:00
|
|
|
let
|
|
|
|
inherit (python2Packages) python cython;
|
|
|
|
in stdenv.mkDerivation rec {
|
2017-04-27 22:48:10 +02:00
|
|
|
name = "libplist-${version}";
|
|
|
|
version = "2.0.0";
|
2010-09-26 21:39:21 +02:00
|
|
|
|
2017-04-27 22:48:10 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig swig2 python cython ];
|
2010-09-26 21:39:21 +02:00
|
|
|
|
2017-05-01 23:43:30 +02:00
|
|
|
propagatedBuildInputs = [ glib ];
|
2010-09-26 21:39:21 +02:00
|
|
|
|
2012-01-06 00:15:54 +01:00
|
|
|
passthru.swig = swig2;
|
|
|
|
|
2017-09-27 02:00:23 +02:00
|
|
|
outputs = ["bin" "dev" "out" "py"];
|
2016-11-09 15:01:28 +01:00
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
moveToOutput "lib/${python.libPrefix}" "$py"
|
|
|
|
'';
|
|
|
|
|
2010-09-26 21:39:21 +02:00
|
|
|
src = fetchurl {
|
2015-04-30 00:46:34 +02:00
|
|
|
url = "http://www.libimobiledevice.org/downloads/${name}.tar.bz2";
|
2017-04-27 22:48:10 +02:00
|
|
|
sha256 = "00pnh9zf3iwdji2faccns7vagbmbrwbj9a8zp9s53a6rqaa9czis";
|
2010-09-26 21:39:21 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2017-08-02 23:50:51 +02:00
|
|
|
homepage = https://github.com/JonathanBeck/libplist;
|
2010-09-26 21:39:21 +02:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2017-03-27 19:11:17 +02:00
|
|
|
maintainers = [ ];
|
2010-09-26 21:39:21 +02:00
|
|
|
};
|
|
|
|
}
|