add tiny log & unity-test

This commit is contained in:
Rongsong Shen 2025-11-04 15:20:57 +08:00
parent 3eb8b50d88
commit 09101274fc
3 changed files with 81 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "unity-test";
version = "2.6.1";
src = fetchFromGitHub {
owner = "ThrowTheSwitch";
repo = "Unity";
tag = "v${finalAttrs.version}";
hash = "sha256-g0ubq7RxGQmL1R6vz9RIGJpVWYsgrZhsTWSrL1ySEug=";
};
nativeBuildInputs = [ cmake ];
doCheck = true;
meta = {
description = "Unity Unit Testing Framework";
homepage = "https://www.throwtheswitch.org/unity";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.i01011001 ];
};
})