2016-06-20 15:45:56 +03:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, boost, makePIC ? false }:
|
2013-07-03 00:42:47 +04:00
|
|
|
|
2016-06-20 15:45:56 +03:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libyaml-cpp-${version}";
|
|
|
|
version = "0.5.3";
|
2013-07-03 00:42:47 +04:00
|
|
|
|
2016-06-20 15:45:56 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jbeder";
|
|
|
|
repo = "yaml-cpp";
|
|
|
|
rev = "release-${version}";
|
|
|
|
sha256 = "0qr286q8mwbr4cxz0y0rf045zc071qh3cb804by6w1ydlqciih8a";
|
2013-07-03 00:42:47 +04:00
|
|
|
};
|
|
|
|
|
2014-09-15 03:01:38 +04:00
|
|
|
buildInputs = [ cmake boost ];
|
2013-07-03 00:42:47 +04:00
|
|
|
|
2015-02-10 12:40:36 +03:00
|
|
|
cmakeFlags = stdenv.lib.optionals makePIC [ "-DCMAKE_C_FLAGS=-fPIC" "-DCMAKE_CXX_FLAGS=-fPIC" ];
|
|
|
|
|
2014-09-15 03:01:38 +04:00
|
|
|
meta = with stdenv.lib; {
|
2016-06-20 15:45:56 +03:00
|
|
|
inherit (src.meta) homepage;
|
2013-07-03 00:42:47 +04:00
|
|
|
description = "A YAML parser and emitter for C++";
|
2014-09-15 03:01:38 +04:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2013-07-03 00:42:47 +04:00
|
|
|
};
|
|
|
|
}
|