From 58c00c35bc266b1c315de130e9f091d6993b755b Mon Sep 17 00:00:00 2001 From: Kranium Gikos Mendoza Date: Mon, 20 Jun 2016 20:45:56 +0800 Subject: [PATCH] libyamlcpp: 0.5.1 -> 0.5.3 --- .../libraries/libyaml-cpp/default.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/libyaml-cpp/default.nix b/pkgs/development/libraries/libyaml-cpp/default.nix index f56bf77abfea..ef806bce1232 100644 --- a/pkgs/development/libraries/libyaml-cpp/default.nix +++ b/pkgs/development/libraries/libyaml-cpp/default.nix @@ -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;