25 # follow revisions defined in .wrap files
26 debugbreak = fetchFromGitHub {
29 rev = "83bf7e933311b88613cbaadeced9c2e2c811054a";
30 hash = "sha256-OPrPGBUZN73Nl5NMEf/nME843yTolt913yjut3rAos0=";
33 klib = fetchFromGitHub {
34 owner = "attractivechaos";
36 rev = "cdb7e9236dc47abf8da7ebd702cc6f7f21f0c502";
37 hash = "sha256-+GaI5nXz4jYI0rO17xDhNtFpLlGL2WzeSVLMfB6Cl6E=";
40 stdenv.mkDerivation rec {
44 src = fetchFromGitHub {
48 fetchSubmodules = true;
49 hash = "sha256-5GH7AYjrnBnqiSmp28BoaM1Xmy8sPs1atfqJkGy3Yf0=";
71 nativeCheckInputs = with python3Packages; [ cram ];
76 cp -r ${debugbreak} subprojects/debugbreak
77 cp -r ${klib} subprojects/klib
79 for dep in "debugbreak" "klib"; do
80 local meson="$dep/meson.build"
82 chmod +w subprojects/$dep
83 cp subprojects/packagefiles/$meson subprojects/$meson
88 patchShebangs ci/isdir.py src/protocol/gen-pb.py
96 passthru.tests.version =
98 tester = callPackage ./tests/001-version.nix { };
100 testers.testVersion {
102 command = "${lib.getExe tester} --version";
103 version = "v${version}";
107 description = "Cross-platform C and C++ unit testing framework for the 21th century";
108 homepage = "https://github.com/Snaipe/Criterion";
109 license = lib.licenses.mit;
110 maintainers = with lib.maintainers; [
115 platforms = lib.platforms.unix;