Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
964 B
Nix
51 lines
964 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchurl,
|
|
findlib,
|
|
ocaml,
|
|
ocamlbuild,
|
|
topkg,
|
|
}:
|
|
|
|
let
|
|
minimumSupportedOcamlVersion = "4.02.0";
|
|
in
|
|
assert lib.versionOlder minimumSupportedOcamlVersion ocaml.version;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "hmap";
|
|
version = "0.8.1";
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://erratique.ch/software/hmap/releases/${pname}-${version}.tbz";
|
|
sha256 = "10xyjy4ab87z7jnghy0wnla9wrmazgyhdwhr4hdmxxdn28dxn03a";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
ocaml
|
|
ocamlbuild
|
|
findlib
|
|
topkg
|
|
];
|
|
buildInputs = [ topkg ];
|
|
|
|
strictDeps = true;
|
|
|
|
inherit (topkg) installPhase;
|
|
|
|
buildPhase = "${topkg.run} build --tests true";
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = "${topkg.run} test";
|
|
|
|
meta = {
|
|
description = "Heterogeneous value maps for OCaml";
|
|
homepage = "https://erratique.ch/software/hmap";
|
|
license = lib.licenses.isc;
|
|
maintainers = [ lib.maintainers.pmahoney ];
|
|
};
|
|
}
|