From 1c2649737180bb5fd196fb8d3e814977aa3c77d8 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 26 Feb 2021 21:37:01 +0100 Subject: [PATCH] ocamlPackages.result: use Dune 2 --- pkgs/development/ocaml-modules/ocaml-result/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/ocaml-result/default.nix b/pkgs/development/ocaml-modules/ocaml-result/default.nix index 2814c6c5280..2fda6f1440b 100644 --- a/pkgs/development/ocaml-modules/ocaml-result/default.nix +++ b/pkgs/development/ocaml-modules/ocaml-result/default.nix @@ -1,9 +1,11 @@ -{ lib, buildDunePackage, fetchurl }: +{ lib, buildDunePackage, fetchurl, ocaml }: 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";