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