ocamlPackages.result: pin Dune to version 1 for OCaml < 4.08
This commit is contained in:
parent
23eecca495
commit
5d5089297e
@ -1,11 +1,9 @@
|
|||||||
{ lib, buildDunePackage, fetchurl, ocaml }:
|
{ lib, buildDunePackage, fetchurl, ocaml }:
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage (rec {
|
||||||
pname = "result";
|
pname = "result";
|
||||||
version = "1.5";
|
version = "1.5";
|
||||||
|
|
||||||
useDune2 = lib.versionAtLeast ocaml.version "4.08";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/janestreet/result/releases/download/${version}/result-${version}.tbz";
|
url = "https://github.com/janestreet/result/releases/download/${version}/result-${version}.tbz";
|
||||||
sha256 = "0cpfp35fdwnv3p30a06wd0py3805qxmq3jmcynjc3x2qhlimwfkw";
|
sha256 = "0cpfp35fdwnv3p30a06wd0py3805qxmq3jmcynjc3x2qhlimwfkw";
|
||||||
@ -21,4 +19,6 @@ buildDunePackage rec {
|
|||||||
'';
|
'';
|
||||||
license = lib.licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
};
|
};
|
||||||
}
|
} // lib.optionalAttrs (!lib.versionAtLeast ocaml.version "4.08") {
|
||||||
|
duneVersion = "1";
|
||||||
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user