2019-12-14 14:57:48 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
gtest,
|
|
|
|
python,
|
|
|
|
boost
|
|
|
|
}:
|
2019-03-21 21:44:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cli11";
|
2020-01-26 03:18:44 +00:00
|
|
|
version = "1.9.0";
|
2019-03-21 21:44:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CLIUtils";
|
|
|
|
repo = "CLI11";
|
|
|
|
rev = "v${version}";
|
2020-01-26 03:18:44 +00:00
|
|
|
sha256 = "1nqri8ahisi00nwh6cynhq5n9iq9iydkysnxj36r2y20yvbi4bxj";
|
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
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "CLI11 is a command line parser for C++11";
|
|
|
|
homepage = https://github.com/CLIUtils/CLI11;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
license = licenses.unfreeRedistributable;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|