depot/third_party/nixpkgs/pkgs/development/tools/misc/cli11/default.nix
Default email a4fd2de975 Project import generated by Copybara.
GitOrigin-RevId: 34ad166a830d3ac1541dcce571c52231f2f0865a
2020-11-02 21:18:15 -05:00

43 lines
850 B
Nix

{
stdenv,
fetchFromGitHub,
cmake,
gtest,
python,
boost
}:
stdenv.mkDerivation rec {
pname = "cli11";
version = "1.9.1";
src = fetchFromGitHub {
owner = "CLIUtils";
repo = "CLI11";
rev = "v${version}";
sha256 = "0hbch0vk8irgmiaxnfqlqys65v1770rxxdfn3d23m2vqyjh0j9l6";
};
nativeBuildInputs = [ cmake ];
checkInputs = [ boost python ];
doCheck = true;
preConfigure = ''
rm -rfv extern/googletest
ln -sfv ${gtest.src} extern/googletest
sed -i '/TrueFalseTest/d' tests/CMakeLists.txt
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Command line parser for C++11";
homepage = "https://github.com/CLIUtils/CLI11";
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ nand0p ];
license = licenses.unfreeRedistributable;
};
}