aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/tools/misc/cli11/default.nix
blob: 0d058ef1f8815a70ac1ae5fcedb03eb410f3a462 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  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 = "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;
  };

}