11 stdenv.mkDerivation rec {
15 outputs = [ "bin" "dev" "out" ] ++ lib.optional enablePython "py";
17 src = fetchFromGitHub {
18 owner = "libimobiledevice";
21 hash = "sha256-hitRcOjbF+L9Og9/qajqFqOhKfRn9+iWLoCKmS9dT80=";
29 buildInputs = lib.optionals enablePython [
35 export RELEASE_VERSION=${version}
40 ] ++ lib.optionals (!enablePython) [
46 postFixup = lib.optionalString enablePython ''
47 moveToOutput "lib/${python3.libPrefix}" "$py"
51 description = "Library to handle Apple Property List format in binary or XML";
52 homepage = "https://github.com/libimobiledevice/libplist";
53 license = licenses.lgpl21Plus;
55 platforms = platforms.unix;
56 mainProgram = "plistutil";