mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
28 lines
687 B
Nix
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;
|
|
};
|
|
}
|