mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
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
|
||||
, 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;
|
||||
};
|
||||
|
||||
}
|
||||
})
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user