summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/macaque/default.nix
blob: 7caf99f4b39165f2e9aceb4006cca621c408ea2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, stdenv, fetchzip, ocaml, findlib, ocamlbuild, pgocaml, camlp4 }:

stdenv.mkDerivation rec {
  pname = "ocaml-macaque";
  version = "0.7.2";

  src = fetchzip {
    url = "https://github.com/ocsigen/macaque/archive/${version}.tar.gz";
    sha256 = "14i0a8cndzndjmlkyhf31r451q99cnkndgxcj0id4qjqhdl4bmjv";
  };

  buildInputs = [ ocaml findlib ocamlbuild camlp4 ];
  propagatedBuildInputs = [ pgocaml ];

  createFindlibDestdir = true;

  meta = with lib; {
    description = "Macros for Caml Queries";
    homepage = "https://github.com/ocsigen/macaque";
    license = licenses.lgpl2;
    platforms = ocaml.meta.platforms or [ ];
    maintainers = with maintainers; [ vbgl ];
  };
}