2016-07-15 16:41:01 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, boost }:
|
2013-07-02 22:42:47 +02:00
|
|
|
|
2016-06-20 14:45:56 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libyaml-cpp-${version}";
|
2018-03-20 21:22:09 +01:00
|
|
|
version = "0.6.2";
|
2013-07-02 22:42:47 +02:00
|
|
|
|
2016-06-20 14:45:56 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jbeder";
|
|
|
|
repo = "yaml-cpp";
|
2018-01-30 17:06:15 +01:00
|
|
|
rev = "yaml-cpp-${version}";
|
2018-03-20 21:22:09 +01:00
|
|
|
sha256 = "16lclpa487yghf9019wymj419wkyx4795wv9q7539hhimajw9kpb";
|
2013-07-02 22:42:47 +02:00
|
|
|
};
|
|
|
|
|
2016-09-01 15:29:00 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-09-01 14:12:17 +02:00
|
|
|
|
2018-01-30 17:06:15 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2013-07-02 22:42:47 +02:00
|
|
|
|
2016-09-01 14:12:17 +02:00
|
|
|
cmakeFlags = "-DBUILD_SHARED_LIBS=ON";
|
|
|
|
|
2014-09-15 01:01:38 +02:00
|
|
|
meta = with stdenv.lib; {
|
2016-06-20 14:45:56 +02:00
|
|
|
inherit (src.meta) homepage;
|
2013-07-02 22:42:47 +02:00
|
|
|
description = "A YAML parser and emitter for C++";
|
2014-09-15 01:01:38 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
2018-01-30 17:06:15 +01:00
|
|
|
maintainers = with maintainers; [ andir ];
|
2013-07-02 22:42:47 +02:00
|
|
|
};
|
|
|
|
}
|