1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/libyaml-cpp/default.nix
2015-06-08 11:17:50 +02:00

23 lines
659 B
Nix

{ stdenv, fetchurl, cmake, boost, makePIC ? false }:
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";
};
buildInputs = [ cmake boost ];
cmakeFlags = stdenv.lib.optionals makePIC [ "-DCMAKE_C_FLAGS=-fPIC" "-DCMAKE_CXX_FLAGS=-fPIC" ];
meta = with stdenv.lib; {
homepage = http://code.google.com/p/yaml-cpp/;
description = "A YAML parser and emitter for C++";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ wkennington ];
};
}