ocamlPackages.stdlib-shims: pin Dune to version 1 for OCaml < 4.08

This commit is contained in:
Vincent Laporte 2023-05-03 22:08:09 +02:00
parent 6dace2206e
commit 8373826ef2
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F

View file

@ -1,14 +1,13 @@
{ buildDunePackage, lib, fetchurl, ocaml }: { buildDunePackage, lib, fetchurl, ocaml }:
buildDunePackage rec { buildDunePackage (rec {
pname = "stdlib-shims"; pname = "stdlib-shims";
version = "0.3.0"; version = "0.3.0";
src = fetchurl { src = fetchurl {
url = "https://github.com/ocaml/${pname}/releases/download/${version}/${pname}-${version}.tbz"; url = "https://github.com/ocaml/${pname}/releases/download/${version}/${pname}-${version}.tbz";
sha256 = "0jnqsv6pqp5b5g7lcjwgd75zqqvcwcl5a32zi03zg1kvj79p5gxs"; sha256 = "0jnqsv6pqp5b5g7lcjwgd75zqqvcwcl5a32zi03zg1kvj79p5gxs";
}; };
useDune2 = lib.versionAtLeast ocaml.version "4.08"; minimalOCamlVersion = "4.02";
minimumOCamlVersion = "4.02";
doCheck = true; doCheck = true;
meta = { meta = {
description = "Shims for forward-compatibility between versions of the OCaml standard library"; description = "Shims for forward-compatibility between versions of the OCaml standard library";
@ -16,4 +15,6 @@ buildDunePackage rec {
inherit (ocaml.meta) license; inherit (ocaml.meta) license;
maintainers = [ lib.maintainers.vbgl ]; maintainers = [ lib.maintainers.vbgl ];
}; };
} } // lib.optionalAttrs (!lib.versionAtLeast ocaml.version "4.08") {
duneVersion = "1";
})