2024-01-05 20:07:17 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, boost
|
2024-01-05 20:09:48 +00:00
|
|
|
, nsplist
|
2024-01-05 20:07:17 +00:00
|
|
|
, pugixml
|
|
|
|
}:
|
2017-04-11 08:22:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2024-01-05 20:07:17 +00:00
|
|
|
pname = "plistcpp";
|
|
|
|
version = "0-unstable-2017-04-11";
|
2017-04-11 08:22:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matthewbauer";
|
|
|
|
repo = "PlistCpp";
|
|
|
|
rev = "11615deab3369356a182dabbf5bae30574967264";
|
2024-01-05 20:07:17 +00:00
|
|
|
hash = "sha256-+3uw1XgYZMRdp+PhWRmjBJZNxGlX9PhFIsbuVPcyVoI=";
|
2017-04-11 08:22:32 +00:00
|
|
|
};
|
|
|
|
|
2023-06-06 19:10:44 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "1i #include <algorithm>" src/Plist.cpp
|
|
|
|
'';
|
|
|
|
|
2024-01-05 20:07:17 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
2024-01-05 20:09:48 +00:00
|
|
|
nsplist
|
2024-01-05 20:07:17 +00:00
|
|
|
pugixml
|
|
|
|
];
|
2017-04-13 01:07:55 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-04-13 01:07:55 +00:00
|
|
|
maintainers = with maintainers; [ matthewbauer ];
|
|
|
|
description = "CPP bindings for Plist";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2017-04-11 08:22:32 +00:00
|
|
|
}
|