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

26 lines
692 B
Nix
Raw Normal View History

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