nixpkgs/pkgs/development/libraries/PlistCpp/default.nix
2023-06-06 22:10:44 +03:00

28 lines
687 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, boost, NSPlist, pugixml }:
stdenv.mkDerivation {
pname = "PlistCpp";
version = "unstable-11615d";
src = fetchFromGitHub {
owner = "matthewbauer";
repo = "PlistCpp";
rev = "11615deab3369356a182dabbf5bae30574967264";
sha256 = "10jn6bvm9vn6492zix2pd724v5h4lccmkqg3lxfw8r0qg3av0yzv";
};
postPatch = ''
sed -i "1i #include <algorithm>" src/Plist.cpp
'';
nativeBuildInputs = [ cmake ];
buildInputs = [ boost NSPlist pugixml ];
meta = with lib; {
maintainers = with maintainers; [ matthewbauer ];
description = "CPP bindings for Plist";
license = licenses.mit;
platforms = platforms.unix;
};
}