2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake }:
|
2013-07-02 20:42:47 +00:00
|
|
|
|
2016-06-20 12:45:56 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libyaml-cpp";
|
2019-10-09 01:18:28 +00:00
|
|
|
version = "0.6.3";
|
2013-07-02 20:42:47 +00:00
|
|
|
|
2016-06-20 12:45:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jbeder";
|
|
|
|
repo = "yaml-cpp";
|
2018-01-30 16:06:15 +00:00
|
|
|
rev = "yaml-cpp-${version}";
|
2019-10-09 01:18:28 +00:00
|
|
|
sha256 = "0ykkxzxcwwiv8l8r697gyqh1nl582krpvi7m7l6b40ijnk4pw30s";
|
2013-07-02 20:42:47 +00:00
|
|
|
};
|
|
|
|
|
2016-09-01 13:29:00 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-09-01 12:12:17 +00:00
|
|
|
|
2018-01-30 16:06:15 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2013-07-02 20:42:47 +00:00
|
|
|
|
2019-08-21 10:57:48 +00:00
|
|
|
cmakeFlags = "-DBUILD_SHARED_LIBS=ON -DYAML_CPP_BUILD_TESTS=OFF";
|
2016-09-01 12:12:17 +00:00
|
|
|
|
2014-09-14 23:01:38 +00:00
|
|
|
meta = with stdenv.lib; {
|
2016-06-20 12:45:56 +00:00
|
|
|
inherit (src.meta) homepage;
|
2013-07-02 20:42:47 +00:00
|
|
|
description = "A YAML parser and emitter for C++";
|
2014-09-14 23:01:38 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
2018-01-30 16:06:15 +00:00
|
|
|
maintainers = with maintainers; [ andir ];
|
2013-07-02 20:42:47 +00:00
|
|
|
};
|
|
|
|
}
|