3
0
Fork 0
forked from mirrors/nixpkgs

ocamlPackages.result: pin Dune to version 1 for OCaml < 4.08

This commit is contained in:
Vincent Laporte 2023-05-03 22:08:21 +02:00
parent 23eecca495
commit 5d5089297e
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F

View file

@ -1,11 +1,9 @@
{ lib, buildDunePackage, fetchurl, ocaml }:
buildDunePackage rec {
buildDunePackage (rec {
pname = "result";
version = "1.5";
useDune2 = lib.versionAtLeast ocaml.version "4.08";
src = fetchurl {
url = "https://github.com/janestreet/result/releases/download/${version}/result-${version}.tbz";
sha256 = "0cpfp35fdwnv3p30a06wd0py3805qxmq3jmcynjc3x2qhlimwfkw";
@ -21,4 +19,6 @@ buildDunePackage rec {
'';
license = lib.licenses.bsd3;
};
}
} // lib.optionalAttrs (!lib.versionAtLeast ocaml.version "4.08") {
duneVersion = "1";
})