7 stdenv.mkDerivation rec {
10 srcVersion = "v${version}.52f24e5";
12 src = fetchFromGitHub {
16 hash = "sha256-HFsk91uJXQ0wpvAQxP4/yZwRQx9kLH7KgB3Y/+zcZC0=";
19 nativeBuildInputs = [ cmake ];
22 "-DBUILD_SHARED_LIBS=ON"
26 patchShebangs tools/build
30 homepage = "https://github.com/argtable/argtable3";
31 description = "A single-file, ANSI C command-line parsing library";
33 Argtable is an open source ANSI C library that parses GNU-style
34 command-line options. It simplifies command-line parsing by defining a
35 declarative-style API that you can use to specify what your command-line
36 syntax looks like. Argtable will automatically generate consistent error
37 handling logic and textual descriptions of the command line syntax, which
38 are essential but tedious to implement for a robust CLI program.
40 license = with licenses; bsd3;
41 maintainers = with maintainers; [ AndersonTorres artuuge ];
42 platforms = with platforms; all;
45 # TODO: a NixOS test suite
46 # TODO: multiple outputs
48 # TODO: build both shared and static libs