Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / doctest / default.nix
blob642cfa3052f713234f7826a2445497c9e087823d
1 { lib, stdenv, fetchFromGitHub, fetchpatch, installShellFiles, cmake }:
3 stdenv.mkDerivation rec {
4   pname = "doctest";
5   version = "2.4.11";
7   src = fetchFromGitHub {
8     owner = "doctest";
9     repo = "doctest";
10     rev = "v${version}";
11     sha256 = "sha256-hotO6QVpPn8unYTaQHFgi40A3oLUd++I3aTe293e4Aw=";
12   };
14   patches = [
15     # Suppress unsafe buffer usage warnings with clang 16, which are treated as errors due to `-Werror`.
16     # https://github.com//doctest/doctest/pull/768
17     (fetchpatch {
18       url = "https://github.com/doctest/doctest/commit/9336c9bd86e3fc2e0c36456cad8be3b4e8829a22.patch";
19       hash = "sha256-ZFCVk5qvgfixRm7ZFr7hyNCSEvrT6nB01G/CBshq53o=";
20     })
21   ];
23   nativeBuildInputs = [ cmake ];
25   doCheck = true;
27   meta = with lib; {
28     homepage = "https://github.com/doctest/doctest";
29     description = "The fastest feature-rich C++11/14/17/20 single-header testing framework";
30     platforms = platforms.all;
31     license = licenses.mit;
32     maintainers = with maintainers; [ davidtwco ];
33   };