nixpkgs/pkgs/by-name/pl/plistcpp/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
717 B
Nix
Raw Normal View History

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
];
meta = with lib; {
maintainers = with maintainers; [ matthewbauer ];
description = "CPP bindings for Plist";
license = licenses.mit;
platforms = platforms.unix;
};
2017-04-11 08:22:32 +00:00
}