Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchurl, buildDunePackage, ocaml
2, astring
3, ounit
4}:
5
6buildDunePackage rec {
7 pname = "parse-argv";
8 version = "0.2.0";
9
10 minimalOCamlVersion = "4.03";
11
12 src = fetchurl {
13 url = "https://github.com/mirage/parse-argv/releases/download/v${version}/parse-argv-v${version}.tbz";
14 sha256 = "06dl04fcmwpkydzni2fzwrhk0bqypd55mgxfax9v82x65xrgj5gw";
15 };
16
17 propagatedBuildInputs = [ astring ];
18
19 doCheck = lib.versionAtLeast ocaml.version "4.08";
20 checkInputs = [ ounit ];
21
22 meta = {
23 description = "Process strings into sets of command-line arguments";
24 homepage = "https://github.com/mirage/parse-argv";
25 license = lib.licenses.isc;
26 maintainers = [ lib.maintainers.vbgl ];
27 };
28}