567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
32 lines
690 B
Nix
32 lines
690 B
Nix
{
|
|
lib,
|
|
buildDunePackage,
|
|
fetchurl,
|
|
ocaml,
|
|
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";
|
|
};
|
|
|
|
minimalOCamlVersion = "4.03";
|
|
|
|
propagatedBuildInputs = [ stdlib-shims ];
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
|
checkInputs = [ ounit ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/mirage/ocaml-diet";
|
|
description = "Simple implementation of Discrete Interval Encoding Trees";
|
|
license = lib.licenses.isc;
|
|
};
|
|
}
|