2019-12-14 14:57:48 +00:00
|
|
|
{
|
2021-01-23 12:26:19 +00:00
|
|
|
lib, stdenv,
|
2019-12-14 14:57:48 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
gtest,
|
|
|
|
python,
|
|
|
|
boost
|
|
|
|
}:
|
2019-03-21 21:44:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cli11";
|
2020-06-26 06:07:42 +01:00
|
|
|
version = "1.9.1";
|
2019-03-21 21:44:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CLIUtils";
|
|
|
|
repo = "CLI11";
|
|
|
|
rev = "v${version}";
|
2020-06-26 06:07:42 +01:00
|
|
|
sha256 = "0hbch0vk8irgmiaxnfqlqys65v1770rxxdfn3d23m2vqyjh0j9l6";
|
2019-03-21 21:44:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
checkInputs = [ boost python ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
rm -rfv extern/googletest
|
|
|
|
ln -sfv ${gtest.src} extern/googletest
|
2019-12-14 14:57:48 +00:00
|
|
|
sed -i '/TrueFalseTest/d' tests/CMakeLists.txt
|
2019-03-21 21:44:40 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "Command line parser for C++11";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/CLIUtils/CLI11";
|
2020-10-14 07:53:06 +01:00
|
|
|
platforms = platforms.unix;
|
2019-03-21 21:44:40 +00:00
|
|
|
maintainers = with maintainers; [ nand0p ];
|
2020-10-14 07:53:06 +01:00
|
|
|
license = licenses.bsd3;
|
2019-03-21 21:44:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|