depot/third_party/nixpkgs/pkgs/development/ocaml-modules/hmap/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

41 lines
874 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";
};
buildInputs = [ ocaml ocamlbuild findlib topkg ];
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 ];
};
}