mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
47bbbb2a62
"test" is the default value used by the Ninja setup hook.
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, boxfort, meson, libcsptr, pkg-config, gettext
|
|
, cmake, ninja, protobuf, libffi, libgit2, dyncall, nanomsg, nanopbMalloc
|
|
, python3Packages }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "criterion";
|
|
version = "2.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Snaipe";
|
|
repo = "Criterion";
|
|
rev = "v${version}";
|
|
sha256 = "KT1XvhT9t07/ubsqzrVUp4iKcpVc1Z+saGF4pm2RsgQ=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ meson ninja cmake pkg-config protobuf ];
|
|
|
|
buildInputs = [
|
|
boxfort.dev
|
|
dyncall
|
|
gettext
|
|
libcsptr
|
|
nanomsg
|
|
nanopbMalloc
|
|
libgit2
|
|
libffi
|
|
];
|
|
|
|
nativeCheckInputs = with python3Packages; [ cram ];
|
|
|
|
doCheck = true;
|
|
|
|
postPatch = ''
|
|
patchShebangs ci/isdir.py src/protocol/gen-pb.py
|
|
'';
|
|
|
|
outputs = [ "dev" "out" ];
|
|
|
|
meta = with lib; {
|
|
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;
|
|
};
|
|
}
|