From 017cfa4a631bd808a6c85c28b29a07190775b1aa Mon Sep 17 00:00:00 2001 From: 2gn <101851090+2gn@users.noreply.github.com> Date: Sat, 30 Jul 2022 00:25:36 +0900 Subject: [PATCH] argparse: init at v2.6 argparse: Added whitespace within brackets argparse: removed whitespace Update pkgs/development/libraries/argparse/default.nix Co-authored-by: Sandro --- .../libraries/argparse/default.nix | 25 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/libraries/argparse/default.nix diff --git a/pkgs/development/libraries/argparse/default.nix b/pkgs/development/libraries/argparse/default.nix new file mode 100644 index 000000000000..ac195e909c67 --- /dev/null +++ b/pkgs/development/libraries/argparse/default.nix @@ -0,0 +1,25 @@ +{ lib, stdenv, fetchFromGitHub, cmake }: + +stdenv.mkDerivation rec { + pname = "argparse"; + version = "2.6"; + + src = fetchFromGitHub { + owner = "p-ranav"; + repo = "argparse"; + rev = "v${version}"; + sha256 = "sha256-imLDuVbzkiE5hcQVarZGeNzNZE0/8LHMQqAiUYzPVks="; + }; + + nativeBuildInputs = [ + cmake + ]; + + meta = with lib; { + description = "Argument Parser for Modern C++"; + homepage = "https://github.com/p-ranav/argparse"; + maintainers = with maintainers; [ _2gn ]; + platforms = platforms.unix; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 86c31194f849..5ff2c08bd9d8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17044,6 +17044,8 @@ with pkgs; arb = callPackage ../development/libraries/arb {}; + argparse = callPackage ../development/libraries/argparse { }; + argp-standalone = callPackage ../development/libraries/argp-standalone {}; aribb25 = callPackage ../development/libraries/aribb25 {