1 { lib, stdenv, autoreconfHook, fetchFromGitHub, pkg-config, enablePython ? false, python ? null, glib }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 owner = "libimobiledevice";
11 sha256 = "1vxhpjxniybqsg5wcygmdmr5dv7p2zb34dqnd3bi813rnnzsdjm6";
14 outputs = ["bin" "dev" "out" ] ++ lib.optional enablePython "py";
19 ] ++ lib.optionals enablePython [
24 configureFlags = lib.optionals (!enablePython) [
28 propagatedBuildInputs = [ glib ];
30 postFixup = lib.optionalString enablePython ''
31 moveToOutput "lib/${python.libPrefix}" "$py"
35 description = "A library to handle Apple Property List format in binary or XML";
36 homepage = "https://github.com/libimobiledevice/libplist";
37 license = licenses.lgpl21Plus;
38 maintainers = with maintainers; [ infinisil ];
39 platforms = platforms.linux ++ platforms.darwin;