Merge staging-next into staging
This commit is contained in:
@@ -1,12 +1,25 @@
|
||||
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.8.3";
|
||||
name = "ocaml${ocaml.version}-astring-${version}";
|
||||
let
|
||||
# Use astring 0.8.3 for OCaml < 4.05
|
||||
param =
|
||||
if stdenv.lib.versionAtLeast ocaml.version "4.05"
|
||||
then {
|
||||
version = "0.8.5";
|
||||
sha256 = "1ykhg9gd3iy7zsgyiy2p9b1wkpqg9irw5pvcqs3sphq71iir4ml6";
|
||||
} else {
|
||||
version = "0.8.3";
|
||||
sha256 = "0ixjwc3plrljvj24za3l9gy0w30lsbggp8yh02lwrzw61ls4cri0";
|
||||
};
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "ocaml${ocaml.version}-astring-${param.version}";
|
||||
inherit (param) version;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://erratique.ch/software/astring/releases/astring-${version}.tbz";
|
||||
sha256 = "0ixjwc3plrljvj24za3l9gy0w30lsbggp8yh02lwrzw61ls4cri0";
|
||||
url = "https://erratique.ch/software/astring/releases/astring-${param.version}.tbz";
|
||||
inherit (param) sha256;
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "stdlib-shims";
|
||||
version = "0.2.0";
|
||||
version = "0.1.0";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ocaml/${pname}/releases/download/${version}/${pname}-${version}.tbz";
|
||||
sha256 = "0nb5flrczpqla1jy2pcsxm06w4jhc7lgbpik11amwhfzdriz0n9c";
|
||||
sha256 = "1jv6yb47f66239m7hsz7zzw3i48mjpbvfgpszws48apqx63wjwsk";
|
||||
};
|
||||
minimumOCamlVersion = "4.02";
|
||||
doCheck = true;
|
||||
|
||||
Reference in New Issue
Block a user