Files
nixpkgs/pkgs/development/ocaml-modules/index/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

67 lines
1.1 KiB
Nix

{
lib,
fetchurl,
buildDunePackage,
repr,
ppx_repr,
fmt,
logs,
mtime,
stdlib-shims,
cmdliner,
progress,
semaphore-compat,
optint,
alcotest,
crowbar,
re,
lru,
}:
buildDunePackage rec {
pname = "index";
version = "1.6.2";
src = fetchurl {
url = "https://github.com/mirage/index/releases/download/${version}/index-${version}.tbz";
hash = "sha256-k4iDUJik7UTuztBw7YaFXASd8SqYMR1JgLm3JOyriGA=";
};
# Compatibility with logs 0.8.0
postPatch = ''
substituteInPlace test/unix/dune --replace-warn logs.fmt 'logs.fmt logs.threaded'
'';
minimalOCamlVersion = "4.08";
buildInputs = [
stdlib-shims
];
propagatedBuildInputs = [
cmdliner
fmt
logs
mtime
ppx_repr
progress
repr
semaphore-compat
optint
lru
];
checkInputs = [
alcotest
crowbar
re
];
doCheck = true;
meta = {
description = "Platform-agnostic multi-level index";
homepage = "https://github.com/mirage/index";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ vbgl ];
};
}