From ce147f9a0d4701cf1df02da577777592f717c261 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sun, 22 May 2016 17:22:25 +0200 Subject: [PATCH] cppo: 1.1.2 -> 1.3.2 --- pkgs/development/tools/ocaml/cppo/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/ocaml/cppo/default.nix b/pkgs/development/tools/ocaml/cppo/default.nix index 461fda45d4c1..38b97c006cde 100644 --- a/pkgs/development/tools/ocaml/cppo/default.nix +++ b/pkgs/development/tools/ocaml/cppo/default.nix @@ -1,7 +1,7 @@ -{stdenv, fetchurl, ocaml, findlib}: +{ stdenv, fetchFromGitHub, ocaml, findlib }: let pname = "cppo"; - version = "1.1.2"; + version = "1.3.2"; webpage = "http://mjambon.com/${pname}.html"; in assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.12"; @@ -9,9 +9,11 @@ stdenv.mkDerivation rec { name = "${pname}-${version}"; - src = fetchurl { - url = "http://mjambon.com/releases/${pname}/${name}.tar.gz"; - sha256 = "1pfzch4ys5gjac2lrkqq0gzmm5plkq2jl17b2m3n06kmwashqplp"; + src = fetchFromGitHub { + owner = "mjambon"; + repo = pname; + rev = "v${version}"; + sha256 = "06j0zr78f04ahxi2459vjn61z25hkvs4dfj76200ydg3g6ifb3k1"; }; buildInputs = [ ocaml findlib ];