summary refs log tree commit diff
path: root/pkgs/development/libraries/argtable
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2021-01-08 15:30:13 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2021-01-10 12:43:48 -0300
commitdb27acb1c88650284624eaabd2ca535a0a8cf216 (patch)
treea0d3796a1ad080c408c26fbb930a3285715844a1 /pkgs/development/libraries/argtable
parent33796d96956e8ffdb7b6715e35997d715c6d7401 (diff)
downloadnixpkgs-db27acb1c88650284624eaabd2ca535a0a8cf216.tar
nixpkgs-db27acb1c88650284624eaabd2ca535a0a8cf216.tar.gz
nixpkgs-db27acb1c88650284624eaabd2ca535a0a8cf216.tar.bz2
nixpkgs-db27acb1c88650284624eaabd2ca535a0a8cf216.tar.lz
nixpkgs-db27acb1c88650284624eaabd2ca535a0a8cf216.tar.xz
nixpkgs-db27acb1c88650284624eaabd2ca535a0a8cf216.tar.zst
nixpkgs-db27acb1c88650284624eaabd2ca535a0a8cf216.zip
argtable: 3.0.1 -> 3.1.5
Diffstat (limited to 'pkgs/development/libraries/argtable')
-rw-r--r--pkgs/development/libraries/argtable/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/libraries/argtable/default.nix b/pkgs/development/libraries/argtable/default.nix
new file mode 100644
index 00000000000..bf953d87fe2
--- /dev/null
+++ b/pkgs/development/libraries/argtable/default.nix
@@ -0,0 +1,40 @@
+{ stdenv
+, fetchFromGitHub
+, cmake
+}:
+
+stdenv.mkDerivation rec {
+  pname = "argtable";
+  version = "3.1.5";
+  srcVersion = "v${version}.1c1bb23";
+
+  src = fetchFromGitHub {
+    owner = "argtable";
+    repo = "argtable3";
+    rev = srcVersion;
+    sha256 = "sha256-sL6mnxsuL1K0DY26jLF/2Czo0RxHYJ3xU3VyavISiMM=";
+  };
+
+  nativeBuildInputs = [ cmake ];
+
+  postPatch = ''
+    patchShebangs tools/build
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = "https://argtable.org";
+    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 [ AndersonTorres ]: a NixOS test suite