cli11: pkgs/development -> pkgs/by-name, refactor

* Fix and enable strictDeps.
* Apply RFC linter.
* Move to pkgs by-name.
* Use finalAttrs.
This commit is contained in:
Josh Hoffer 2024-05-10 13:59:00 -07:00
parent 8e9745496f
commit 9dd5ff0b82
2 changed files with 17 additions and 15 deletions

View File

@ -1,29 +1,34 @@
{ lib
, stdenv
, fetchFromGitHub
, boost
, catch2
, cmake
, gtest
, python3
{
lib,
stdenv,
fetchFromGitHub,
boost,
catch2,
cmake,
python3,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "cli11";
version = "2.3.2";
src = fetchFromGitHub {
owner = "CLIUtils";
repo = "CLI11";
rev = "v${version}";
rev = "v${finalAttrs.version}";
sha256 = "sha256-x3/kBlf5LdzkTO4NYOKanZBfcU4oK+fJw9L7cf88LsY=";
};
buildInputs = [ catch2 ];
nativeBuildInputs = [ cmake ];
nativeCheckInputs = [ boost python3 catch2 ];
nativeCheckInputs = [
boost
python3
];
doCheck = true;
strictDeps = true;
meta = with lib; {
description = "Command line parser for C++11";
@ -32,5 +37,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ ];
license = licenses.bsd3;
};
}
})

View File

@ -18555,8 +18555,6 @@ with pkgs;
sigrok-firmware-fx2lafw = callPackage ../development/tools/sigrok-firmware-fx2lafw { };
cli11 = callPackage ../development/tools/misc/cli11 { };
datree = callPackage ../development/tools/datree { };
detekt = callPackage ../development/tools/detekt { };