summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/easy-format/default.nix
blob: bac558cc50ac68ce84cfa5c448c894d263af3ecb (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
{ stdenv, fetchzip, ocaml, findlib }:
let
  pname = "easy-format";
  version = "1.1.0";
in
stdenv.mkDerivation {

  name = "${pname}-${version}";

  src = fetchzip {
    url = "https://github.com/mjambon/${pname}/archive/v${version}.tar.gz";
    sha256 = "084blm13k5lakl5wq3qfxbd0l0bwblvk928v75xcxpaqwv426w5a";
  };

  buildInputs = [ ocaml findlib ];

  createFindlibDestdir = true;

  doCheck = true;
  checkTarget = "test";

  meta = with stdenv.lib; {
    description = "A high-level and functional interface to the Format module of the OCaml standard library";
    homepage = "http://mjambon.com/${pname}.html";
    license = licenses.bsd3;
    maintainers = [ maintainers.vbgl ];
  };
}