diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2023-10-21 18:01:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-21 18:01:53 +0000 |
commit | f4afba201428530fdb713fda18d055bd99daf333 (patch) | |
tree | a760cddec5bad37433f29f2c1c2c75b6fba8d05d /pkgs/by-name/ar | |
parent | b52540749224057bb31cfb20168fe71474cf2116 (diff) | |
parent | a01279cf2329f710bb84f3aa64d32ea87a8c4124 (diff) |
Merge staging-next into staging
Diffstat (limited to 'pkgs/by-name/ar')
-rw-r--r-- | pkgs/by-name/ar/argagg/package.nix | 41 | ||||
-rw-r--r-- | pkgs/by-name/ar/argtable/package.nix | 48 |
2 files changed, 89 insertions, 0 deletions
diff --git a/pkgs/by-name/ar/argagg/package.nix b/pkgs/by-name/ar/argagg/package.nix new file mode 100644 index 0000000000000..bb8507abbe977 --- /dev/null +++ b/pkgs/by-name/ar/argagg/package.nix @@ -0,0 +1,41 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "argagg"; + version = "0.4.7"; + + src = fetchFromGitHub { + owner = "vietjtnguyen"; + repo = "argagg"; + rev = finalAttrs.version; + hash = "sha256-G0PzoKpUyb1MaziLvHgasq98jPODUu4EgPzywRjuIN8="; + }; + + nativeBuildInputs = [ + cmake + ]; + + meta = { + homepage = "https://github.com/vietjtnguyen/argagg"; + description = "Argument Aggregator"; + longDescription = '' + argagg is yet another C++ command line argument/option parser. It was + written as a simple and idiomatic alternative to other frameworks like + getopt, Boost program options, TCLAP, and others. The goal is to achieve + the majority of argument parsing needs in a simple manner with an easy to + use API. It operates as a single pass over all arguments, recognizing + flags prefixed by - (short) or -- (long) and aggregating them into easy to + access structures with lots of convenience functions. It defers processing + types until you access them, so the result structures end up just being + pointers into the original command line argument C-strings. + ''; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ AndersonTorres ]; + platforms = lib.platforms.all; + badPlatforms = [ "aarch64-darwin" ]; + }; +}) diff --git a/pkgs/by-name/ar/argtable/package.nix b/pkgs/by-name/ar/argtable/package.nix new file mode 100644 index 0000000000000..18206202691c7 --- /dev/null +++ b/pkgs/by-name/ar/argtable/package.nix @@ -0,0 +1,48 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "argtable"; + version = "3.2.2"; + srcVersion = "v${finalAttrs.version}.f25c624"; + + src = fetchFromGitHub { + owner = "argtable"; + repo = "argtable3"; + rev = finalAttrs.srcVersion; + hash = "sha256-X89xFLDs6NEgjzzwy8kplvTgukQd/CV3Xa9A3JXecf4="; + }; + + nativeBuildInputs = [ cmake ]; + + cmakeFlags = [ + (lib.cmakeBool "BUILD_SHARED_LIBS" true) + ]; + + postPatch = '' + patchShebangs tools/build + ''; + + meta = { + 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 = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ AndersonTorres artuuge ]; + platforms = lib.platforms.all; + }; +}) +# TODO: a NixOS test suite +# TODO: multiple outputs +# TODO: documentation +# TODO: build both shared and static libs |