2018-08-13 06:45:46 +02:00
|
|
|
{ stdenv, autoreconfHook, fetchFromGitHub, pkgconfig, python2Packages, glib }:
|
2010-09-26 21:39:21 +02:00
|
|
|
|
2016-11-09 15:01:28 +01:00
|
|
|
let
|
|
|
|
inherit (python2Packages) python cython;
|
2018-08-13 06:45:46 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libplist";
|
|
|
|
version = "2018-07-25";
|
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libimobiledevice";
|
|
|
|
repo = pname;
|
|
|
|
rev = "db68a9d1070b363eee93147f072f46526064acbc";
|
|
|
|
sha256 = "0lxyb35jjg31m8dxhsv1jr2ccy5s19fsqzisy7lfjk46w7brs4h5";
|
|
|
|
};
|
2010-09-26 21:39:21 +02:00
|
|
|
|
2018-08-13 06:45:46 +02:00
|
|
|
outputs = ["bin" "dev" "out" "py"];
|
2010-09-26 21:39:21 +02:00
|
|
|
|
2018-08-13 06:45:46 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
python
|
|
|
|
cython
|
|
|
|
autoreconfHook
|
|
|
|
];
|
2012-01-06 00:15:54 +01:00
|
|
|
|
2018-08-13 06:45:46 +02:00
|
|
|
propagatedBuildInputs = [ glib ];
|
2016-11-09 15:01:28 +01:00
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
moveToOutput "lib/${python.libPrefix}" "$py"
|
|
|
|
'';
|
|
|
|
|
2018-08-13 06:45:46 +02: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 19:11:17 +02:00
|
|
|
maintainers = [ ];
|
2018-08-13 06:45:46 +02:00
|
|
|
platforms = platforms.linux;
|
2010-09-26 21:39:21 +02:00
|
|
|
};
|
|
|
|
}
|