Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 gitUpdater, 6 cmake, 7 static ? stdenv.hostPlatform.isStatic, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "yaml-cpp"; 12 version = "0.8.0"; 13 14 src = fetchFromGitHub { 15 owner = "jbeder"; 16 repo = "yaml-cpp"; 17 rev = version; 18 hash = "sha256-J87oS6Az1/vNdyXu3L7KmUGWzU0IAkGrGMUUha+xDXI="; 19 }; 20 21 strictDeps = true; 22 23 nativeBuildInputs = [ 24 cmake 25 ]; 26 27 cmakeFlags = [ 28 "-DYAML_CPP_BUILD_TOOLS=false" 29 (lib.cmakeBool "YAML_BUILD_SHARED_LIBS" (!static)) 30 "-DINSTALL_GTEST=false" 31 ]; 32 33 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; 34 35 passthru.updateScript = gitUpdater { }; 36 37 meta = with lib; { 38 description = "YAML parser and emitter for C++"; 39 homepage = "https://github.com/jbeder/yaml-cpp"; 40 license = licenses.mit; 41 platforms = platforms.all; 42 maintainers = with maintainers; [ OPNA2608 ]; 43 }; 44}