ocamlPackages.result: use Dune 2

This commit is contained in:
Vincent Laporte 2021-02-26 21:37:01 +01:00
parent 0c98cef613
commit 1c26497371
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F

View file

@ -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";