2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, 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 {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://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
|
|
|
};
|
|
|
|
}
|