nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 972 B view raw
1{ 2 stdenv, 3 lib, 4 fetchurl, 5 findlib, 6 ocaml, 7 ocamlbuild, 8 topkg, 9}: 10 11let 12 minimumSupportedOcamlVersion = "4.02.0"; 13in 14stdenv.mkDerivation rec { 15 pname = "hmap"; 16 version = "0.8.1"; 17 name = "ocaml${ocaml.version}-${pname}-${version}"; 18 19 src = fetchurl { 20 url = "http://erratique.ch/software/hmap/releases/${pname}-${version}.tbz"; 21 sha256 = "10xyjy4ab87z7jnghy0wnla9wrmazgyhdwhr4hdmxxdn28dxn03a"; 22 }; 23 24 nativeBuildInputs = [ 25 ocaml 26 ocamlbuild 27 findlib 28 topkg 29 ]; 30 buildInputs = [ topkg ]; 31 32 strictDeps = true; 33 34 inherit (topkg) installPhase; 35 36 buildPhase = "${topkg.run} build --tests true"; 37 38 doCheck = true; 39 40 checkPhase = "${topkg.run} test"; 41 42 meta = { 43 description = "Heterogeneous value maps for OCaml"; 44 homepage = "https://erratique.ch/software/hmap"; 45 license = lib.licenses.isc; 46 maintainers = [ lib.maintainers.pmahoney ]; 47 broken = !(lib.versionOlder minimumSupportedOcamlVersion ocaml.version); 48 }; 49}