3
0
Fork 0
forked from mirrors/nixpkgs

ocamlPackages.pprint: 20140424 -> 20171003

This commit is contained in:
Vincent Laporte 2017-10-05 21:32:47 +00:00
parent 6ad671fcb3
commit 4086a9cf45

View file

@ -2,13 +2,23 @@
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.12"; assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.12";
let param =
if stdenv.lib.versionAtLeast ocaml.version "4.02"
then {
version = "20171003";
sha256 = "06zwsskri8kaqjdszj9360nf36zvwh886xwf033aija8c9k4w6cx";
} else {
version = "20140424";
sha256 = "0sc9q89dnyarcg24czyhr6ams0ylqvia3745s6rfwd2nldpygsdk";
}; in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "ocaml-pprint-20140424"; name = "ocaml${ocaml.version}-pprint-${param.version}";
src = fetchurl { src = fetchurl {
url = http://gallium.inria.fr/~fpottier/pprint/pprint-20140424.tar.gz; url = "http://gallium.inria.fr/~fpottier/pprint/pprint-${param.version}.tar.gz";
sha256 = "0sc9q89dnyarcg24czyhr6ams0ylqvia3745s6rfwd2nldpygsdk"; inherit (param) sha256;
}; };
buildInputs = [ ocaml findlib ocamlbuild ]; buildInputs = [ ocaml findlib ocamlbuild ];