2019-12-14 15:57:48 +01:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
gtest,
|
|
|
|
python,
|
|
|
|
boost
|
|
|
|
}:
|
2019-03-21 22:44:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cli11";
|
2019-06-01 12:29:13 +02:00
|
|
|
version = "1.8.0";
|
2019-03-21 22:44:40 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CLIUtils";
|
|
|
|
repo = "CLI11";
|
|
|
|
rev = "v${version}";
|
2019-06-01 12:29:13 +02:00
|
|
|
sha256 = "0i1x4ax5hal7jdsxw40ljwfv68h0ac85iyi35i8p52p9s5qsc71q";
|
2019-03-21 22:44:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
checkInputs = [ boost python ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
rm -rfv extern/googletest
|
|
|
|
ln -sfv ${gtest.src} extern/googletest
|
2019-12-14 15:57:48 +01:00
|
|
|
sed -i '/TrueFalseTest/d' tests/CMakeLists.txt
|
2019-03-21 22:44:40 +01: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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|