criterion: 2.3.3 -> 2.4.1

This commit is contained in:
thesola10 2022-07-17 10:50:19 +02:00 committed by TheSola10
parent 131c23a180
commit bff379e9ed
No known key found for this signature in database
GPG Key ID: 89245619BEBB95BA

View File

@ -1,19 +1,20 @@
{ lib, stdenv, fetchFromGitHub, boxfort, cmake, libcsptr, pkg-config, gettext { lib, stdenv, fetchFromGitHub, boxfort, meson, libcsptr, pkg-config, gettext
, dyncall , nanomsg, python3Packages }: , cmake, ninja, protobuf, libffi, libgit2, dyncall, nanomsg, nanopbMalloc
, python3Packages }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "2.3.3";
pname = "criterion"; pname = "criterion";
version = "2.4.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Snaipe"; owner = "Snaipe";
repo = "Criterion"; repo = "Criterion";
rev = "v${version}"; rev = "v${version}";
sha256 = "0y1ay8is54k3y82vagdy0jsa3nfkczpvnqfcjm5n9iarayaxaq8p"; sha256 = "KT1XvhT9t07/ubsqzrVUp4iKcpVc1Z+saGF4pm2RsgQ=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
nativeBuildInputs = [ cmake pkg-config ]; nativeBuildInputs = [ meson ninja cmake pkg-config protobuf ];
buildInputs = [ buildInputs = [
boxfort.dev boxfort.dev
@ -21,13 +22,19 @@ stdenv.mkDerivation rec {
gettext gettext
libcsptr libcsptr
nanomsg nanomsg
nanopbMalloc
libgit2
libffi
]; ];
checkInputs = with python3Packages; [ cram ]; checkInputs = with python3Packages; [ cram ];
cmakeFlags = [ "-DCTESTS=ON" ];
doCheck = true; doCheck = true;
checkTarget = "criterion_tests test"; checkTarget = "test";
postPatch = ''
patchShebangs ci/isdir.py src/protocol/gen-pb.py
'';
outputs = [ "dev" "out" ]; outputs = [ "dev" "out" ];