2021-05-29 03:34:57 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cgreen";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "1.6.0";
|
2021-05-29 03:34:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cgreen-devs";
|
|
|
|
repo = "cgreen";
|
|
|
|
rev = version;
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-BXch/V73a35Y6MqUlmR8mDp3ttwEAQTnqDC+ygLbIPY=";
|
2021-05-29 03:34:57 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
postPatch = ''
|
|
|
|
for F in tools/discoverer_acceptance_tests.c tools/discoverer.c; do
|
|
|
|
substituteInPlace "$F" --replace "/usr/bin/nm" "nm"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-05-29 03:34:57 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/cgreen-devs/cgreen";
|
|
|
|
description = "The Modern Unit Test and Mocking Framework for C and C++";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = [ maintainers.nichtsfrei ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|