Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchzip, stdenv, ocaml, findlib, ocamlbuild }:
2
3stdenv.mkDerivation rec {
4 pname = "ocaml${ocaml.version}-getopt";
5 version = "20120615";
6
7 src = fetchzip {
8 url = "https://download.ocamlcore.org/ocaml-getopt/ocaml-getopt/${version}/ocaml-getopt-${version}.tar.gz";
9 sha256 = "0bng2mmdixpmj23xn8krlnaq66k22iclwz46r8zjrsrq3wcn1xgn";
10 };
11
12 nativeBuildInputs = [
13 ocaml
14 findlib
15 ocamlbuild
16 ];
17
18 strictDeps = true;
19
20 doCheck = true;
21 createFindlibDestdir = true;
22
23 meta = {
24 inherit (ocaml.meta) platforms;
25 homepage = "https://github.com/gildor478/ocaml-getopt";
26 description = "Parsing of command line arguments (similar to GNU GetOpt) for OCaml";
27 license = lib.licenses.mit;
28 maintainers = [ lib.maintainers.ulrikstrid ];
29 };
30}