at master 42 lines 726 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 boost, 7 nsplist, 8 pugixml, 9}: 10 11stdenv.mkDerivation { 12 pname = "plistcpp"; 13 version = "0-unstable-2017-04-11"; 14 15 src = fetchFromGitHub { 16 owner = "matthewbauer"; 17 repo = "PlistCpp"; 18 rev = "11615deab3369356a182dabbf5bae30574967264"; 19 hash = "sha256-+3uw1XgYZMRdp+PhWRmjBJZNxGlX9PhFIsbuVPcyVoI="; 20 }; 21 22 postPatch = '' 23 sed -i "1i #include <algorithm>" src/Plist.cpp 24 ''; 25 26 nativeBuildInputs = [ 27 cmake 28 ]; 29 30 buildInputs = [ 31 boost 32 nsplist 33 pugixml 34 ]; 35 36 meta = with lib; { 37 maintainers = with maintainers; [ matthewbauer ]; 38 description = "CPP bindings for Plist"; 39 license = licenses.mit; 40 platforms = platforms.unix; 41 }; 42}