My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/libraries/termcolor/default.nix

37 lines
750 B

{ 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 ];
};
}