2018-08-13 04:45:46 +00:00
|
|
|
{ stdenv, autoreconfHook, fetchFromGitHub, pkgconfig, python2Packages, glib }:
|
2010-09-26 19:39:21 +00:00
|
|
|
|
2016-11-09 14:01:28 +00:00
|
|
|
let
|
|
|
|
inherit (python2Packages) python cython;
|
2018-08-13 04:45:46 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libplist";
|
2019-02-22 22:30:06 +00:00
|
|
|
version = "2019-01-20";
|
2018-08-13 04:45:46 +00:00
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libimobiledevice";
|
|
|
|
repo = pname;
|
2019-02-22 22:30:06 +00:00
|
|
|
rev = "bec850fe399639f3b8582a39386216970dea15ed";
|
|
|
|
sha256 = "197yw8xz8x2xld8b6975scgnl30j4ibm9llmzljyqngs0zsdwnin";
|
2018-08-13 04:45:46 +00:00
|
|
|
};
|
2010-09-26 19:39:21 +00:00
|
|
|
|
2018-08-13 04:45:46 +00:00
|
|
|
outputs = ["bin" "dev" "out" "py"];
|
2010-09-26 19:39:21 +00:00
|
|
|
|
2018-08-13 04:45:46 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
python
|
|
|
|
cython
|
|
|
|
autoreconfHook
|
|
|
|
];
|
2012-01-05 23:15:54 +00:00
|
|
|
|
2018-08-13 04:45:46 +00:00
|
|
|
propagatedBuildInputs = [ glib ];
|
2016-11-09 14:01:28 +00:00
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
moveToOutput "lib/${python.libPrefix}" "$py"
|
|
|
|
'';
|
|
|
|
|
2018-08-13 04:45:46 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A library to handle Apple Property List format in binary or XML";
|
|
|
|
homepage = https://github.com/libimobiledevice/libplist;
|
|
|
|
license = licenses.lgpl21Plus;
|
2017-03-27 17:11:17 +00:00
|
|
|
maintainers = [ ];
|
2018-08-13 04:45:46 +00:00
|
|
|
platforms = platforms.linux;
|
2010-09-26 19:39:21 +00:00
|
|
|
};
|
|
|
|
}
|