diff options
author | Emery Hemingway <ehmry@posteo.net> | 2020-12-26 18:32:36 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2020-12-30 17:55:30 +0100 |
commit | 3d7d7b8af3e3ba8c0c009e813b6b06f376b14349 (patch) | |
tree | c3a2263476183d972e8a6b9e117fa3b345c02e49 /pkgs/development/ocaml-modules/diet | |
parent | caf07b0ebf5ddad6b9be0a1295e9c032379558d9 (diff) |
ocamlPackages.diet: init at 0.4
Diffstat (limited to 'pkgs/development/ocaml-modules/diet')
-rw-r--r-- | pkgs/development/ocaml-modules/diet/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/diet/default.nix b/pkgs/development/ocaml-modules/diet/default.nix new file mode 100644 index 0000000000000..0d4229c03ea3d --- /dev/null +++ b/pkgs/development/ocaml-modules/diet/default.nix @@ -0,0 +1,26 @@ +{ lib, buildDunePackage, fetchurl, stdlib-shims, ounit }: + +buildDunePackage rec { + pname = "diet"; + version = "0.4"; + + src = fetchurl { + url = + "https://github.com/mirage/ocaml-diet/releases/download/v${version}/diet-v${version}.tbz"; + sha256 = "96acac2e4fdedb5f47dd8ad2562e723d85ab59cd1bd85554df21ec907b071741"; + }; + + minimumOCamlVersion = "4.03"; + + propagatedBuildInputs = [ stdlib-shims ]; + + doCheck = true; + checkInputs = [ ounit ]; + + meta = with lib; { + homepage = "https://github.com/mirage/ocaml-diet"; + description = "Simple implementation of Discrete Interval Encoding Trees"; + license = licenses.isc; + maintainers = with maintainers; [ ehmry ]; + }; +} |