mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #110441 from spease/cxxopts
This commit is contained in:
commit
27df874f07
3 changed files with 35 additions and 0 deletions
|
@ -8661,6 +8661,12 @@
|
|||
githubId = 7669898;
|
||||
name = "Katharina Fey";
|
||||
};
|
||||
spease = {
|
||||
email = "peasteven@gmail.com";
|
||||
github = "spease";
|
||||
githubId = 2825204;
|
||||
name = "Steven Pease";
|
||||
};
|
||||
spencerjanssen = {
|
||||
email = "spencerjanssen@gmail.com";
|
||||
github = "spencerjanssen";
|
||||
|
|
27
pkgs/development/libraries/cxxopts/default.nix
Normal file
27
pkgs/development/libraries/cxxopts/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ cmake, fetchFromGitHub, icu, lib, pkg-config, stdenv, enableUnicodeHelp ? true }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "cxxopts";
|
||||
version = "2.2.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jarro2783";
|
||||
repo = name;
|
||||
rev = "v${version}";
|
||||
sha256 = "0d3y747lsh1wkalc39nxd088rbypxigm991lk3j91zpn56whrpha";
|
||||
};
|
||||
|
||||
buildInputs = lib.optional enableUnicodeHelp [ icu.dev ];
|
||||
cmakeFlags = lib.optional enableUnicodeHelp [ "-DCXXOPTS_USE_UNICODE_HELP=TRUE" ];
|
||||
nativeBuildInputs = [ cmake ] ++ lib.optional enableUnicodeHelp [ pkg-config ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/jarro2783/cxxopts";
|
||||
description = "Lightweight C++ GNU-style option parser library";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.spease ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
|
@ -13337,6 +13337,8 @@ in
|
|||
|
||||
cxx-prettyprint = callPackage ../development/libraries/cxx-prettyprint { };
|
||||
|
||||
cxxopts = callPackage ../development/libraries/cxxopts { };
|
||||
|
||||
cxxtest = python2Packages.callPackage ../development/libraries/cxxtest { };
|
||||
|
||||
cypress = callPackage ../development/web/cypress { };
|
||||
|
|
Loading…
Reference in a new issue