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