about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/macaque/default.nix
blob: d47c0c4f11c5e90ee79175698d523ca8ed2a3c9d (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
25
26
27
28
{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, pgocaml, camlp4 }:

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

  src = fetchFromGitHub {
    owner = "ocsigen";
    repo = "macaque";
    rev = version;
    sha256 = "sha256-W9ZFaINYYtIikKy/ZqdlKeFQSA7DQT9plc3+ZhlSIJI=";
  };

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

  strictDeps = true;

  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 ];
  };
}