2022-08-21 13:32:41 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, boxfort, meson, libcsptr, pkg-config, gettext
|
|
|
|
, cmake, ninja, protobuf, libffi, libgit2, dyncall, nanomsg, nanopbMalloc
|
|
|
|
, python3Packages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "criterion";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "2.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Snaipe";
|
|
|
|
repo = "Criterion";
|
|
|
|
rev = "v${version}";
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "KT1XvhT9t07/ubsqzrVUp4iKcpVc1Z+saGF4pm2RsgQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
nativeBuildInputs = [ meson ninja cmake pkg-config protobuf ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boxfort.dev
|
|
|
|
dyncall
|
|
|
|
gettext
|
|
|
|
libcsptr
|
|
|
|
nanomsg
|
2022-08-21 13:32:41 +00:00
|
|
|
nanopbMalloc
|
|
|
|
libgit2
|
|
|
|
libffi
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [ cram ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ci/isdir.py src/protocol/gen-pb.py
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "dev" "out" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A cross-platform C and C++ unit testing framework for the 21th century";
|
|
|
|
homepage = "https://github.com/Snaipe/Criterion";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
thesola10
|
|
|
|
Yumasi
|
|
|
|
];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|