nixpkgs/pkgs/development/libraries/libyaml-cpp/default.nix

28 lines
635 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake }:
2016-06-20 13:45:56 +01:00
stdenv.mkDerivation rec {
name = "libyaml-cpp-${version}";
version = "0.6.2";
2016-06-20 13:45:56 +01:00
src = fetchFromGitHub {
owner = "jbeder";
repo = "yaml-cpp";
2018-01-30 16:06:15 +00:00
rev = "yaml-cpp-${version}";
sha256 = "16lclpa487yghf9019wymj419wkyx4795wv9q7539hhimajw9kpb";
};
outputs = [ "out" "dev" ];
2018-01-30 16:06:15 +00:00
nativeBuildInputs = [ cmake ];
cmakeFlags = "-DBUILD_SHARED_LIBS=ON";
meta = with stdenv.lib; {
2016-06-20 13:45:56 +01:00
inherit (src.meta) homepage;
description = "A YAML parser and emitter for C++";
license = licenses.mit;
platforms = platforms.unix;
2018-01-30 16:06:15 +00:00
maintainers = with maintainers; [ andir ];
};
}