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