1{
2 stdenv,
3 fetchFromGitHub,
4 cmake,
5 gtest,
6 python,
7 boost
8}:
9
10stdenv.mkDerivation rec {
11 pname = "cli11";
12 version = "1.9.1";
13
14 src = fetchFromGitHub {
15 owner = "CLIUtils";
16 repo = "CLI11";
17 rev = "v${version}";
18 sha256 = "0hbch0vk8irgmiaxnfqlqys65v1770rxxdfn3d23m2vqyjh0j9l6";
19 };
20
21 nativeBuildInputs = [ cmake ];
22
23 checkInputs = [ boost python ];
24
25 doCheck = true;
26
27 preConfigure = ''
28 rm -rfv extern/googletest
29 ln -sfv ${gtest.src} extern/googletest
30 sed -i '/TrueFalseTest/d' tests/CMakeLists.txt
31 '';
32
33 enableParallelBuilding = true;
34
35 meta = with stdenv.lib; {
36 description = "CLI11 is a command line parser for C++11";
37 homepage = "https://github.com/CLIUtils/CLI11";
38 platforms = [ "x86_64-linux" ];
39 maintainers = with maintainers; [ nand0p ];
40 license = licenses.unfreeRedistributable;
41 };
42
43}