1{ lib, stdenv, fetchFromGitHub, cmake, boost, curl, leatherman }:
2
3stdenv.mkDerivation rec {
4 pname = "cpp-hocon";
5 version = "0.3.0";
6
7 src = fetchFromGitHub {
8 sha256 = "0b24anpwkmvbsn5klnr58vxksw00ci9pjhwzx7a61kplyhsaiydw";
9 rev = version;
10 repo = "cpp-hocon";
11 owner = "puppetlabs";
12 };
13
14 postPatch = ''
15 sed -i -e '/add_subdirectory(tests)/d' lib/CMakeLists.txt
16 '';
17
18 env.NIX_CFLAGS_COMPILE = "-Wno-error";
19
20 nativeBuildInputs = [ cmake ];
21
22 buildInputs = [ boost curl leatherman ];
23
24 meta = with lib; {
25 inherit (src.meta) homepage;
26 description = "A C++ port of the Typesafe Config library";
27 license = licenses.asl20;
28 maintainers = [ maintainers.womfoo ];
29 platforms = platforms.unix;
30 };
31
32}