2015-02-10 09:40:36 +00:00
|
|
|
{ stdenv, fetchurl, cmake, boost, makePIC ? false }:
|
2013-07-02 20:42:47 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "libyaml-cpp-0.5.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://yaml-cpp.googlecode.com/files/yaml-cpp-0.5.1.tar.gz;
|
|
|
|
sha256 = "01kg0h8ksp162kdhyzn67vnlxpj5zjbks84sh50pv61xni990z1y";
|
|
|
|
};
|
|
|
|
|
2014-09-14 23:01:38 +00:00
|
|
|
buildInputs = [ cmake boost ];
|
2013-07-02 20:42:47 +00:00
|
|
|
|
2015-02-10 09:40:36 +00:00
|
|
|
cmakeFlags = stdenv.lib.optionals makePIC [ "-DCMAKE_C_FLAGS=-fPIC" "-DCMAKE_CXX_FLAGS=-fPIC" ];
|
|
|
|
|
2014-09-14 23:01:38 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-07-02 20:42:47 +00:00
|
|
|
homepage = http://code.google.com/p/yaml-cpp/;
|
|
|
|
description = "A YAML parser and emitter for C++";
|
2014-09-14 23:01:38 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2013-07-02 20:42:47 +00:00
|
|
|
};
|
|
|
|
}
|