summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/stringext/default.nix
blob: dde2b0ebe45ceb293ec8436569b9763a9ebe3646 (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
{ stdenv, fetchgit, ocaml, findlib }:

let version = "1.2.0"; in

stdenv.mkDerivation {
  name = "ocaml-stringext-${version}";

  src = fetchgit {
    url = https://github.com/rgrinberg/stringext.git;
    rev = "refs/tags/v${version}";
    sha256 = "04ixh33225n2fyc0i35pk7h9shxfdg9grhvkxy086zppki3a3vc6";
  };

  buildInputs = [ ocaml findlib ];

  configurePhase = "ocaml setup.ml -configure --prefix $out";
  buildPhase = "ocaml setup.ml -build";
  installPhase = "ocaml setup.ml -install";

  createFindlibDestdir = true;

  meta = {
    homepage = https://github.com/rgrinberg/stringext;
    platforms = ocaml.meta.platforms;
    description = "Extra string functions for OCaml";
    license = stdenv.lib.licenses.mit;
    maintainers = with stdenv.lib.maintainers; [ vbgl ];
  };
}