nixpkgs/pkgs/development/libraries/yaml-cpp/0.3.0.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
821 B
Nix
Raw Normal View History

2023-01-31 15:22:48 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation rec {
2023-01-31 15:22:48 +00:00
pname = "yaml-cpp";
version = "0.3.0";
src = fetchFromGitHub {
owner = "jbeder";
repo = "yaml-cpp";
rev = "release-${version}";
2023-01-31 15:22:48 +00:00
hash = "sha256-pmgcULTXhl83+Wc8ZsGebnJ1t0XybHhUEJxDnEZE5x8=";
};
2023-01-31 15:22:48 +00:00
strictDeps = true;
2023-01-31 15:22:48 +00:00
nativeBuildInputs = [
cmake
];
2023-01-31 15:22:48 +00:00
cmakeFlags = [
"-DYAML_CPP_BUILD_TOOLS=${lib.boolToString doCheck}"
"-DBUILD_SHARED_LIBS=${lib.boolToString (!stdenv.hostPlatform.isStatic)}"
];
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
meta = with lib; {
description = "A YAML parser and emitter for C++";
2023-01-31 15:22:48 +00:00
homepage = "https://github.com/jbeder/yaml-cpp";
license = licenses.mit;
2023-01-31 15:22:48 +00:00
platforms = platforms.all;
maintainers = with maintainers; [ OPNA2608 ];
};
}