1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/libplist/default.nix
Jan Tojnar 730c92d9e2
libplist: disable python by default
Introduced in 6449435b04, only Python 2 is supported and it does not seem to be used by anything.
2019-12-25 07:23:19 +01:00

42 lines
1.1 KiB
Nix

{ stdenv, autoreconfHook, fetchFromGitHub, pkgconfig, enablePython ? false, python, glib }:
stdenv.mkDerivation rec {
pname = "libplist";
version = "2019-04-04";
src = fetchFromGitHub {
owner = "libimobiledevice";
repo = pname;
rev = "42bb64ba966082b440cb68cbdadf317f44710017";
sha256 = "19yw80yblq29i2jx9yb7bx0lfychy9dncri3fk4as35kq5bf26i8";
};
outputs = ["bin" "dev" "out" ] ++ stdenv.lib.optional enablePython "py";
nativeBuildInputs = [
pkgconfig
autoreconfHook
] ++ stdenv.lib.optionals enablePython [
python
python.pkgs.cython
];
configureFlags = stdenv.lib.optionals (!enablePython) [
"--without-cython"
];
propagatedBuildInputs = [ glib ];
postFixup = stdenv.lib.optionalString enablePython ''
moveToOutput "lib/${python.libPrefix}" "$py"
'';
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;
maintainers = with maintainers; [ infinisil ];
platforms = platforms.linux;
};
}