termcolor: init at 2.0.0
This commit is contained in:
parent
3e231f033c
commit
86d00441b0
2 changed files with 39 additions and 0 deletions
37
pkgs/development/libraries/termcolor/default.nix
Normal file
37
pkgs/development/libraries/termcolor/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "termcolor";
|
||||
version = "2.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ikalnytskyi";
|
||||
repo = "termcolor";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-W0hB+lFJ2sm7DsbOzITOtjJuntSM55BfwUunOOS4RcA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
cmakeFlags = [ "-DTERMCOLOR_TESTS=ON" ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
./test_termcolor
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Header-only C++ library for printing colored messages";
|
||||
homepage = "https://github.com/ikalnytskyi/termcolor";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ prusnak ];
|
||||
};
|
||||
}
|
|
@ -9984,6 +9984,8 @@ with pkgs;
|
|||
|
||||
telescope = callPackage ../applications/networking/browsers/telescope { };
|
||||
|
||||
termcolor = callPackage ../development/libraries/termcolor { };
|
||||
|
||||
termscp = callPackage ../tools/networking/termscp {
|
||||
inherit (darwin.apple_sdk.frameworks) Foundation Security;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue