libyamlcpp: 0.5.1 -> 0.5.3

This commit is contained in:
Kranium Gikos Mendoza 2016-06-20 20:45:56 +08:00
parent 125ffff089
commit 58c00c35bc

View file

@ -1,11 +1,14 @@
{ stdenv, fetchurl, cmake, boost, makePIC ? false }:
{ stdenv, fetchFromGitHub, cmake, boost, makePIC ? false }:
stdenv.mkDerivation {
name = "libyaml-cpp-0.5.1";
stdenv.mkDerivation rec {
name = "libyaml-cpp-${version}";
version = "0.5.3";
src = fetchurl {
url = http://yaml-cpp.googlecode.com/files/yaml-cpp-0.5.1.tar.gz;
sha256 = "01kg0h8ksp162kdhyzn67vnlxpj5zjbks84sh50pv61xni990z1y";
src = fetchFromGitHub {
owner = "jbeder";
repo = "yaml-cpp";
rev = "release-${version}";
sha256 = "0qr286q8mwbr4cxz0y0rf045zc071qh3cb804by6w1ydlqciih8a";
};
buildInputs = [ cmake boost ];
@ -13,7 +16,7 @@ stdenv.mkDerivation {
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/;
inherit (src.meta) homepage;
description = "A YAML parser and emitter for C++";
license = licenses.mit;
platforms = platforms.unix;