diff options
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/diet/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/ocaml-modules/diet/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/diet/default.nix b/nixpkgs/pkgs/development/ocaml-modules/diet/default.nix new file mode 100644 index 000000000000..0d4229c03ea3 --- /dev/null +++ b/nixpkgs/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 ]; + }; +} |