nixpkgs/pkgs/by-name/cl/cli11/package.nix
nicoo 2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00

40 lines
705 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
boost,
catch2,
cmake,
python3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "cli11";
version = "2.3.2";
src = fetchFromGitHub {
owner = "CLIUtils";
repo = "CLI11";
rev = "v${finalAttrs.version}";
hash = "sha256-x3/kBlf5LdzkTO4NYOKanZBfcU4oK+fJw9L7cf88LsY=";
};
buildInputs = [ catch2 ];
nativeBuildInputs = [ cmake ];
nativeCheckInputs = [
boost
python3
];
doCheck = true;
strictDeps = true;
meta = with lib; {
description = "Command line parser for C++11";
homepage = "https://github.com/CLIUtils/CLI11";
platforms = platforms.unix;
maintainers = [ ];
license = licenses.bsd3;
};
})