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 {
|
2015-04-29 23:46:34 +01:00
|
|
|
name = "libplist-1.12";
|
2010-09-26 20:39:21 +01:00
|
|
|
|
2016-11-09 14:01:28 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig swig2 python cython ];
|
2010-09-26 20:39:21 +01:00
|
|
|
|
2015-04-29 23:46:34 +01:00
|
|
|
#patches = [ ./swig.patch ];
|
2010-09-26 20:39:21 +01:00
|
|
|
|
2016-11-09 14:01:28 +00:00
|
|
|
propagatedBuildInputs = [ libxml2 glib ];
|
2010-09-26 20:39:21 +01:00
|
|
|
|
2012-01-05 23:15:54 +00:00
|
|
|
passthru.swig = swig2;
|
|
|
|
|
2016-11-09 14:01:28 +00:00
|
|
|
outputs = ["out" "dev" "bin" "py"];
|
|
|
|
|
|
|
|
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";
|
|
|
|
sha256 = "1gj4nv0bvdm5y2sqm2vj2rn44k67ahw3mh6q614qq4nyngfdxzqf";
|
2010-09-26 20:39:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://github.com/JonathanBeck/libplist;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
2017-02-23 02:09:14 +00:00
|
|
|
knownVulnerabilities = [
|
|
|
|
"CVE-2017-5209: base64decode function in base64.c allows attackers to obtain sensitive information from process memory or cause a denial of service"
|
|
|
|
"CVE-2017-5545: attackers to obtain sensitive information from process memory or cause a denial of service"
|
|
|
|
"CVE-2017-5834: A heap-buffer overflow in parse_dict_node"
|
|
|
|
"CVE-2017-5835: A memory allocation error leading to DoS"
|
|
|
|
"CVE-2017-5836: A type inconsistency in bplist.c"
|
|
|
|
];
|
2010-09-26 20:39:21 +01:00
|
|
|
};
|
|
|
|
}
|