about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/easy-format/default.nix
blob: a6e78977846c9cde5ddea950fd864aae76c5708b (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
29
{ lib, stdenv, fetchFromGitHub, ocaml, findlib }:

stdenv.mkDerivation rec {

  pname = "easy-format";
  version = "1.2.0";

  src = fetchFromGitHub {
    owner = "mjambon";
    repo = "easy-format";
    rev = "v${version}";
    sha256 = "sha256-qf73+T9a+eDy78iZgpA08TjIo+lvjftfSkwyT3M96gE=";
  };

  nativeBuildInputs = [ ocaml findlib ];
  strictDeps = true;

  createFindlibDestdir = true;

  doCheck = true;
  checkTarget = "test";

  meta = with lib; {
    description = "A high-level and functional interface to the Format module of the OCaml standard library";
    homepage = "https://github.com/ocaml-community/easy-format";
    license = licenses.bsd3;
    maintainers = [ maintainers.vbgl ];
  };
}