nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 boost,
6 catch2,
7 cmake,
8 python3,
9}:
10
11stdenv.mkDerivation (finalAttrs: {
12 pname = "cli11";
13 version = "2.5.0";
14
15 src = fetchFromGitHub {
16 owner = "CLIUtils";
17 repo = "CLI11";
18 rev = "v${finalAttrs.version}";
19 hash = "sha256-73dfpZDnKl0cADM4LTP3/eDFhwCdiHbEaGRF7ZyWsdQ=";
20 };
21
22 buildInputs = [ catch2 ];
23 nativeBuildInputs = [ cmake ];
24
25 nativeCheckInputs = [
26 boost
27 python3
28 ];
29
30 doCheck = true;
31 strictDeps = true;
32
33 meta = {
34 description = "Command line parser for C++11";
35 homepage = "https://github.com/CLIUtils/CLI11";
36 platforms = lib.platforms.unix;
37 maintainers = [ ];
38 license = lib.licenses.bsd3;
39 };
40})