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:
parent
8e9745496f
commit
9dd5ff0b82
@ -1,29 +1,34 @@
|
|||||||
{ lib
|
{
|
||||||
, stdenv
|
lib,
|
||||||
, fetchFromGitHub
|
stdenv,
|
||||||
, boost
|
fetchFromGitHub,
|
||||||
, catch2
|
boost,
|
||||||
, cmake
|
catch2,
|
||||||
, gtest
|
cmake,
|
||||||
, python3
|
python3,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "cli11";
|
pname = "cli11";
|
||||||
version = "2.3.2";
|
version = "2.3.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "CLIUtils";
|
owner = "CLIUtils";
|
||||||
repo = "CLI11";
|
repo = "CLI11";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
sha256 = "sha256-x3/kBlf5LdzkTO4NYOKanZBfcU4oK+fJw9L7cf88LsY=";
|
sha256 = "sha256-x3/kBlf5LdzkTO4NYOKanZBfcU4oK+fJw9L7cf88LsY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ catch2 ];
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
nativeCheckInputs = [ boost python3 catch2 ];
|
nativeCheckInputs = [
|
||||||
|
boost
|
||||||
|
python3
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Command line parser for C++11";
|
description = "Command line parser for C++11";
|
||||||
@ -32,5 +37,4 @@ stdenv.mkDerivation rec {
|
|||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ ];
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
};
|
};
|
||||||
|
})
|
||||||
}
|
|
@ -18555,8 +18555,6 @@ with pkgs;
|
|||||||
|
|
||||||
sigrok-firmware-fx2lafw = callPackage ../development/tools/sigrok-firmware-fx2lafw { };
|
sigrok-firmware-fx2lafw = callPackage ../development/tools/sigrok-firmware-fx2lafw { };
|
||||||
|
|
||||||
cli11 = callPackage ../development/tools/misc/cli11 { };
|
|
||||||
|
|
||||||
datree = callPackage ../development/tools/datree { };
|
datree = callPackage ../development/tools/datree { };
|
||||||
|
|
||||||
detekt = callPackage ../development/tools/detekt { };
|
detekt = callPackage ../development/tools/detekt { };
|
||||||
|
Loading…
Reference in New Issue
Block a user