nerdfonts: fix wrong attribute name in error message (#364463)
[NixPkgs.git] / pkgs / by-name / ca / catch / package.nix
blob07a79619b49d19b20809f3c0157b88550ca03f96
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   fetchpatch,
6   cmake,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "catch";
11   version = "1.12.2";
13   src = fetchFromGitHub {
14     owner = "catchorg";
15     repo = "Catch";
16     rev = "v${version}";
17     sha256 = "1gdp5wm8khn02g2miz381llw3191k7309qj8s3jd6sasj01rhf23";
18   };
20   nativeBuildInputs = [ cmake ];
21   cmakeFlags = [ "-DUSE_CPP14=ON" ];
23   patches = [
24     # https://github.com/catchorg/Catch2/pull/2151
25     (fetchpatch {
26       url = "https://github.com/catchorg/Catch2/commit/bb6d08323f23a39eb65dd86671e68f4f5d3f2d6c.patch";
27       sha256 = "1vhbzx84nrhhf9zlbl6h5zmg3r5w5v833ihlswsysb9wp2i4isc5";
28     })
30     # Fix glibc-2.34 build
31     (fetchpatch {
32       url = "https://src.fedoraproject.org/rpms/catch1/raw/23276476148a657e7a45ade547f858cbf965a33a/f/catch1-sigstksz.patch";
33       sha256 = "sha256-XSsI3iDEZCUSbozlYWC0y/LZ7qr/5zwACpn1jHKD0yU=";
34     })
35   ];
37   doCheck = true;
38   checkTarget = "test";
40   meta = with lib; {
41     description = "Multi-paradigm automated test framework for C++ and Objective-C (and, maybe, C)";
42     homepage = "http://catch-lib.net";
43     license = licenses.boost;
44     maintainers = with maintainers; [
45       edwtjo
46       knedlsepp
47     ];
48     platforms = with platforms; unix;
49   };