summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/asetmap/default.nix
blob: 840cf7a5ae3ab4e5d8b0762a54237fce09ece8fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  lib,
  fetchurl,
  buildDunePackage,
  topkg,
  findlib,
  ocamlbuild,
  ocaml,
}:

buildDunePackage (finalAttrs: {
  pname = "asetmap";
  version = "0.8.1";
  src = fetchurl {
    url = "https://github.com/dbuenzli/asetmap/archive/refs/tags/v${finalAttrs.version}.tar.gz";
    sha256 = "051ky0k62xp4inwi6isif56hx5ggazv4jrl7s5lpvn9cj8329frj";
  };

  strictDeps = true;

  nativeBuildInputs = [
    topkg
    findlib
    ocamlbuild
    ocaml
  ];
  buildInputs = [ topkg ];

  inherit (topkg) buildPhase installPhase;

  meta = {
    inherit (ocaml.meta) platforms;
    license = lib.licenses.isc;
  };
})