nixpkgs-suyu/pkgs/development/libraries/cxxopts/default.nix
Jappie Klooster c102db25e8
cxxopts: 2.2.1 -> 2020-12-14
This upgrade is made intandum with upgrading ydotools.
The only dependending package of this library at the moment.

Changing to date notation because ydotool just specifies a specific
commit, since no other library depends on this, I upgraded it
to that exact same version.

Fix cxxopts date formating

Update pkgs/development/libraries/cxxopts/default.nix

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-04-03 11:02:12 -04:00

27 lines
864 B
Nix

{ cmake, fetchFromGitHub, icu, lib, pkg-config, stdenv, enableUnicodeHelp ? true }:
stdenv.mkDerivation rec {
name = "cxxopts";
version = "unstable-2020-12-14";
src = fetchFromGitHub {
owner = "jarro2783";
repo = name;
rev = "2d8e17c4f88efce80e274cb03eeb902e055a91d3";
sha256 = "0pwrac81zfqjs17g3hx8r3ds2xf04npb6mz111qjy4bx17314ib7";
};
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;
};
}