Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
430 B
Nix
Raw Permalink Normal View History

2024-05-05 18:22:32 +02:00
{
stdenv,
pkg-config,
criterion,
}:
stdenv.mkDerivation rec {
name = "version-tester";
inherit (criterion) version;
2024-05-05 18:22:32 +02:00
src = ./test_dummy.c;
dontUnpack = true;
buildInputs = [ criterion ];
nativeBuildInputs = [ pkg-config ];
buildPhase = ''
cc -o ${name} $src `pkg-config --libs criterion`
'';
installPhase = ''
mkdir -p $out/bin
cp ${name} $out/bin/${name}
'';
meta.mainProgram = name;
}