nixpkgs/pkgs/development/libraries/libplist/default.nix

42 lines
978 B
Nix
Raw Normal View History

2018-08-13 04:45:46 +00:00
{ stdenv, autoreconfHook, fetchFromGitHub, pkgconfig, python2Packages, glib }:
let
inherit (python2Packages) python cython;
2018-08-13 04:45:46 +00:00
in
stdenv.mkDerivation rec {
pname = "libplist";
2019-04-16 11:45:31 +00:00
version = "2019-04-04";
2018-08-13 04:45:46 +00:00
name = "${pname}-${version}";
src = fetchFromGitHub {
owner = "libimobiledevice";
repo = pname;
2019-04-16 11:45:31 +00:00
rev = "42bb64ba966082b440cb68cbdadf317f44710017";
sha256 = "19yw80yblq29i2jx9yb7bx0lfychy9dncri3fk4as35kq5bf26i8";
2018-08-13 04:45:46 +00:00
};
2018-08-13 04:45:46 +00:00
outputs = ["bin" "dev" "out" "py"];
2018-08-13 04:45:46 +00:00
nativeBuildInputs = [
pkgconfig
python
cython
autoreconfHook
];
2018-08-13 04:45:46 +00:00
propagatedBuildInputs = [ glib ];
postFixup = ''
moveToOutput "lib/${python.libPrefix}" "$py"
'';
2018-08-13 04:45:46 +00: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;
2019-04-16 11:45:31 +00:00
maintainers = with maintainers; [ infinisil ];
2018-08-13 04:45:46 +00:00
platforms = platforms.linux;
};
}