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

30 lines
681 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, boost }:
2013-07-02 22:42:47 +02:00
2016-06-20 20:45:56 +08:00
stdenv.mkDerivation rec {
name = "libyaml-cpp-${version}";
version = "0.5.3";
2013-07-02 22:42:47 +02:00
2016-06-20 20:45:56 +08:00
src = fetchFromGitHub {
owner = "jbeder";
repo = "yaml-cpp";
rev = "release-${version}";
sha256 = "0qr286q8mwbr4cxz0y0rf045zc071qh3cb804by6w1ydlqciih8a";
2013-07-02 22:42:47 +02:00
};
outputs = [ "out" "dev" ];
2016-09-01 14:12:17 +02:00
buildInputs = [ cmake boost ];
2013-07-02 22:42:47 +02:00
2016-09-01 14:12:17 +02:00
cmakeFlags = "-DBUILD_SHARED_LIBS=ON";
enableParallelBuilding = true;
meta = with stdenv.lib; {
2016-06-20 20:45:56 +08:00
inherit (src.meta) homepage;
2013-07-02 22:42:47 +02:00
description = "A YAML parser and emitter for C++";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ wkennington ];
2013-07-02 22:42:47 +02:00
};
}