diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-10-20 23:56:25 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-10-21 10:50:31 -0300 |
commit | 8b087fdb0948d3efc5d5b7715ac20941a384be27 (patch) | |
tree | 08a14368551eff9c2450c9de6ecc1a4c7fab346e /pkgs/by-name/ar | |
parent | 95964369a695d0e335d7fd14ab1bf9cbb070c77e (diff) |
argtable: migrate to by-name
Diffstat (limited to 'pkgs/by-name/ar')
-rw-r--r-- | pkgs/by-name/ar/argtable/package.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/by-name/ar/argtable/package.nix b/pkgs/by-name/ar/argtable/package.nix new file mode 100644 index 0000000000000..9752b9600397c --- /dev/null +++ b/pkgs/by-name/ar/argtable/package.nix @@ -0,0 +1,48 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +}: + +stdenv.mkDerivation rec { + pname = "argtable"; + version = "3.2.1"; + srcVersion = "v${version}.52f24e5"; + + src = fetchFromGitHub { + owner = "argtable"; + repo = "argtable3"; + rev = srcVersion; + hash = "sha256-HFsk91uJXQ0wpvAQxP4/yZwRQx9kLH7KgB3Y/+zcZC0="; + }; + + nativeBuildInputs = [ cmake ]; + + cmakeFlags = [ + "-DBUILD_SHARED_LIBS=ON" + ]; + + postPatch = '' + patchShebangs tools/build + ''; + + meta = with lib; { + homepage = "https://github.com/argtable/argtable3"; + description = "A single-file, ANSI C command-line parsing library"; + longDescription = '' + Argtable is an open source ANSI C library that parses GNU-style + command-line options. It simplifies command-line parsing by defining a + declarative-style API that you can use to specify what your command-line + syntax looks like. Argtable will automatically generate consistent error + handling logic and textual descriptions of the command line syntax, which + are essential but tedious to implement for a robust CLI program. + ''; + license = with licenses; bsd3; + maintainers = with maintainers; [ AndersonTorres artuuge ]; + platforms = with platforms; all; + }; +} +# TODO: a NixOS test suite +# TODO: multiple outputs +# TODO: documentation +# TODO: build both shared and static libs |