nerdfonts: fix wrong attribute name in error message (#364463)
[NixPkgs.git] / pkgs / by-name / do / doctest / package.nix
blob11ad954f6b762a56854220df610424986f56fa78
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   fetchpatch,
6   cmake,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "doctest";
11   version = "2.4.11";
13   src = fetchFromGitHub {
14     owner = "doctest";
15     repo = "doctest";
16     rev = "v${version}";
17     sha256 = "sha256-hotO6QVpPn8unYTaQHFgi40A3oLUd++I3aTe293e4Aw=";
18   };
20   patches = [
21     # Suppress unsafe buffer usage warnings with clang 16, which are treated as errors due to `-Werror`.
22     # https://github.com//doctest/doctest/pull/768
23     (fetchpatch {
24       url = "https://github.com/doctest/doctest/commit/9336c9bd86e3fc2e0c36456cad8be3b4e8829a22.patch";
25       hash = "sha256-ZFCVk5qvgfixRm7ZFr7hyNCSEvrT6nB01G/CBshq53o=";
26     })
27   ];
29   nativeBuildInputs = [ cmake ];
31   doCheck = true;
33   meta = with lib; {
34     homepage = "https://github.com/doctest/doctest";
35     description = "Fastest feature-rich C++11/14/17/20 single-header testing framework";
36     platforms = platforms.all;
37     license = licenses.mit;
38     maintainers = with maintainers; [ davidtwco ];
39   };