nerdfonts: fix wrong attribute name in error message (#364463)
[NixPkgs.git] / pkgs / development / ocaml-modules / re / default.nix
blobbadee9a3c91d09317fa07f416074c26bd2515c77
2   lib,
3   fetchurl,
4   buildDunePackage,
5   ocaml,
6   ounit,
7   seq,
8 }:
10 let
11   version_sha =
12     if lib.versionAtLeast ocaml.version "4.08" then
13       {
14         version = "1.11.0";
15         sha256 = "sha256-AfwkR4DA9r5yrnlrH7dQ82feGGJP110H7nl4LtbfjU8=";
16       }
17     else
18       {
19         version = "1.9.0";
20         sha256 = "1gas4ky49zgxph3870nffzkr6y41kkpqp4nj38pz1gh49zcf12aj";
21       };
24 buildDunePackage rec {
25   pname = "re";
26   version = version_sha.version;
28   minimalOCamlVersion = "4.02";
30   src = fetchurl {
31     url = "https://github.com/ocaml/ocaml-re/releases/download/${version}/re-${version}.tbz";
32     sha256 = version_sha.sha256;
33   };
35   buildInputs = lib.optional doCheck ounit;
36   propagatedBuildInputs = [ seq ];
37   doCheck = lib.versionAtLeast ocaml.version "4.08";
39   meta = {
40     homepage = "https://github.com/ocaml/ocaml-re";
41     description = "Pure OCaml regular expressions, with support for Perl and POSIX-style strings";
42     license = lib.licenses.lgpl2;
43     maintainers = with lib.maintainers; [ vbgl ];
44   };