3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libplist/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

40 lines
945 B
Nix

{ stdenv, autoreconfHook, fetchFromGitHub, pkgconfig, python2Packages, glib }:
let
inherit (python2Packages) python cython;
in
stdenv.mkDerivation rec {
pname = "libplist";
version = "2019-04-04";
src = fetchFromGitHub {
owner = "libimobiledevice";
repo = pname;
rev = "42bb64ba966082b440cb68cbdadf317f44710017";
sha256 = "19yw80yblq29i2jx9yb7bx0lfychy9dncri3fk4as35kq5bf26i8";
};
outputs = ["bin" "dev" "out" "py"];
nativeBuildInputs = [
pkgconfig
python
cython
autoreconfHook
];
propagatedBuildInputs = [ glib ];
postFixup = ''
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;
};
}