From baccfe8940408668cd85bdcba99e03b23411089b Mon Sep 17 00:00:00 2001 From: yugen Date: Thu, 20 Feb 2025 09:21:30 +0545 Subject: [PATCH] unity-test:init at 2.61 --- pkgs/by-name/un/unity-test/package.nix | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/by-name/un/unity-test/package.nix diff --git a/pkgs/by-name/un/unity-test/package.nix b/pkgs/by-name/un/unity-test/package.nix new file mode 100644 index 000000000000..4b0d280276c3 --- /dev/null +++ b/pkgs/by-name/un/unity-test/package.nix @@ -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 ]; + }; +})