2018-08-13 05:45:46 +01:00
|
|
|
{ stdenv, autoreconfHook, fetchFromGitHub, pkgconfig, python2Packages, glib }:
|
2010-09-26 20:39:21 +01:00
|
|
|
|
2016-11-09 14:01:28 +00:00
|
|
|
let
|
|
|
|
inherit (python2Packages) python cython;
|
2018-08-13 05:45:46 +01: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 20:39:21 +01:00
|
|
|
|
2018-08-13 05:45:46 +01:00
|
|
|
outputs = ["bin" "dev" "out" "py"];
|
2010-09-26 20:39:21 +01:00
|
|
|
|
2018-08-13 05:45:46 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
python
|
|
|
|
cython
|
|
|
|
autoreconfHook
|
|
|
|
];
|
2012-01-05 23:15:54 +00:00
|
|
|
|
2018-08-13 05:45:46 +01:00
|
|
|
propagatedBuildInputs = [ glib ];
|
2016-11-09 14:01:28 +00:00
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
moveToOutput "lib/${python.libPrefix}" "$py"
|
|
|
|
'';
|
|
|
|
|
2018-08-13 05:45:46 +01: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 18:11:17 +01:00
|
|
|
maintainers = [ ];
|
2018-08-13 05:45:46 +01:00
|
|
|
platforms = platforms.linux;
|
2010-09-26 20:39:21 +01:00
|
|
|
};
|
|
|
|
}
|