aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/ocaml-modules/sosa/default.nix
blob: 4278989341f1132a06235830b7344b9e70539b8b (plain)
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
30
{ lib, fetchFromGitHub, stdenv
, findlib, nonstd, ocaml, ocamlbuild
}:

stdenv.mkDerivation rec {
  name = "ocaml${ocaml.version}-sosa-${version}";
  version = "0.3.0";

  src = fetchFromGitHub {
    owner = "hammerlab";
    repo = "sosa";
    rev = "sosa.${version}";
    sha256 = "053hdv6ww0q4mivajj4iyp7krfvgq8zajq9d8x4mia4lid7j0dyk";
  };

  buildInputs = [ nonstd ocaml ocamlbuild findlib ];

  buildPhase = "make build";

  createFindlibDestdir = true;

  doCheck = true;

  meta = with lib; {
    homepage = http://www.hammerlab.org/docs/sosa/master/index.html;
    description = "Sane OCaml String API";
    license = licenses.isc;
    maintainers = [ maintainers.alexfmpe ];
  };
}