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