Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 38 lines 821 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, cmake 5}: 6 7stdenv.mkDerivation rec { 8 pname = "yaml-cpp"; 9 version = "0.3.0"; 10 11 src = fetchFromGitHub { 12 owner = "jbeder"; 13 repo = "yaml-cpp"; 14 rev = "release-${version}"; 15 hash = "sha256-pmgcULTXhl83+Wc8ZsGebnJ1t0XybHhUEJxDnEZE5x8="; 16 }; 17 18 strictDeps = true; 19 20 nativeBuildInputs = [ 21 cmake 22 ]; 23 24 cmakeFlags = [ 25 "-DYAML_CPP_BUILD_TOOLS=${lib.boolToString doCheck}" 26 "-DBUILD_SHARED_LIBS=${lib.boolToString (!stdenv.hostPlatform.isStatic)}" 27 ]; 28 29 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; 30 31 meta = with lib; { 32 description = "A YAML parser and emitter for C++"; 33 homepage = "https://github.com/jbeder/yaml-cpp"; 34 license = licenses.mit; 35 platforms = platforms.all; 36 maintainers = with maintainers; [ OPNA2608 ]; 37 }; 38}