summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/getopt/default.nix
blob: e3bf2fb5d6418a9cf52d7ef933b21dc084b4c727 (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
30
{ lib, fetchzip, stdenv, ocaml, findlib, ocamlbuild }:

stdenv.mkDerivation rec {
  pname = "ocaml${ocaml.version}-getopt";
  version = "20120615";

  src = fetchzip {
    url = "https://download.ocamlcore.org/ocaml-getopt/ocaml-getopt/${version}/ocaml-getopt-${version}.tar.gz";
    sha256 = "0bng2mmdixpmj23xn8krlnaq66k22iclwz46r8zjrsrq3wcn1xgn";
  };

  nativeBuildInputs = [
    ocaml
    findlib
    ocamlbuild
  ];

  strictDeps = true;

  doCheck = true;
  createFindlibDestdir = true;

  meta = {
    inherit (ocaml.meta) platforms;
    homepage = "https://github.com/gildor478/ocaml-getopt";
    description = "Parsing of command line arguments (similar to GNU GetOpt) for OCaml";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.ulrikstrid ];
  };
}