2019-12-25 06:13:59 +00:00
|
|
|
{ stdenv, autoreconfHook, fetchFromGitHub, pkgconfig, enablePython ? false, python, glib }:
|
2010-09-26 20:39:21 +01:00
|
|
|
|
2018-08-13 05:45:46 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libplist";
|
2019-04-16 12:45:31 +01:00
|
|
|
version = "2019-04-04";
|
2018-08-13 05:45:46 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libimobiledevice";
|
|
|
|
repo = pname;
|
2019-04-16 12:45:31 +01:00
|
|
|
rev = "42bb64ba966082b440cb68cbdadf317f44710017";
|
|
|
|
sha256 = "19yw80yblq29i2jx9yb7bx0lfychy9dncri3fk4as35kq5bf26i8";
|
2018-08-13 05:45:46 +01:00
|
|
|
};
|
2010-09-26 20:39:21 +01:00
|
|
|
|
2019-12-25 06:13:59 +00:00
|
|
|
outputs = ["bin" "dev" "out" ] ++ stdenv.lib.optional enablePython "py";
|
2010-09-26 20:39:21 +01:00
|
|
|
|
2018-08-13 05:45:46 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
autoreconfHook
|
2019-12-25 06:13:59 +00:00
|
|
|
] ++ stdenv.lib.optionals enablePython [
|
|
|
|
python
|
|
|
|
python.pkgs.cython
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = stdenv.lib.optionals (!enablePython) [
|
|
|
|
"--without-cython"
|
2018-08-13 05:45:46 +01:00
|
|
|
];
|
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
|
|
|
|
2019-12-25 06:13:59 +00:00
|
|
|
postFixup = stdenv.lib.optionalString enablePython ''
|
2016-11-09 14:01:28 +00:00
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/libimobiledevice/libplist";
|
2018-08-13 05:45:46 +01:00
|
|
|
license = licenses.lgpl21Plus;
|
2019-04-16 12:45:31 +01:00
|
|
|
maintainers = with maintainers; [ infinisil ];
|
2018-08-13 05:45:46 +01:00
|
|
|
platforms = platforms.linux;
|
2010-09-26 20:39:21 +01:00
|
|
|
};
|
|
|
|
}
|