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