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