depot/third_party/nixpkgs/pkgs/development/libraries/cgreen/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

29 lines
742 B
Nix

{ stdenv, lib, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "cgreen";
version = "1.6.1";
src = fetchFromGitHub {
owner = "cgreen-devs";
repo = "cgreen";
rev = version;
sha256 = "sha256-uyw5beBZ3MnDyaxBWIDGl/L/0yv0ROafXwgxhQ+A+n4=";
};
postPatch = ''
for F in tools/discoverer_acceptance_tests.c tools/discoverer.c; do
substituteInPlace "$F" --replace "/usr/bin/nm" "nm"
done
'';
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;
};
}