2020-04-24 23:36:52 +00:00
|
|
|
{
|
2021-02-05 17:12:51 +00:00
|
|
|
lib, stdenv,
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
gtest,
|
2021-03-20 04:20:00 +00:00
|
|
|
python3,
|
2020-04-24 23:36:52 +00:00
|
|
|
boost
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cli11";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "1.9.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CLIUtils";
|
|
|
|
repo = "CLI11";
|
|
|
|
rev = "v${version}";
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "0hbch0vk8irgmiaxnfqlqys65v1770rxxdfn3d23m2vqyjh0j9l6";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
checkInputs = [ boost python3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
rm -rfv extern/googletest
|
|
|
|
ln -sfv ${gtest.src} extern/googletest
|
|
|
|
sed -i '/TrueFalseTest/d' tests/CMakeLists.txt
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "Command line parser for C++11";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/CLIUtils/CLI11";
|
2020-12-25 13:55:36 +00:00
|
|
|
platforms = platforms.unix;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-12-25 13:55:36 +00:00
|
|
|
license = licenses.bsd3;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|