nixpkgs/pkgs/development/tools/misc/cli11/default.nix

42 lines
788 B
Nix
Raw Normal View History

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