From 90361764fe734b298a0d045004578e87c312e725 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sun, 14 Feb 2021 14:15:55 +0100 Subject: [PATCH] ocamlPackages.re: use Dune 2 --- pkgs/development/ocaml-modules/re/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/ocaml-modules/re/default.nix b/pkgs/development/ocaml-modules/re/default.nix index ca3cf1e82675..4734d4a9bf52 100644 --- a/pkgs/development/ocaml-modules/re/default.nix +++ b/pkgs/development/ocaml-modules/re/default.nix @@ -6,6 +6,8 @@ buildDunePackage rec { minimumOCamlVersion = "4.02"; + useDune2 = lib.versionAtLeast ocaml.version "4.08"; + src = fetchurl { url = "https://github.com/ocaml/ocaml-re/releases/download/${version}/re-${version}.tbz"; sha256 = "1gas4ky49zgxph3870nffzkr6y41kkpqp4nj38pz1gh49zcf12aj";