Heitor Augusto c4ea434f1b
criterion: remove "v" prefix from version of test derivation
The version string must start with a digit per nixpkgs versioning guideline.
2025-02-10 18:49:42 -03:00

26 lines
430 B
Nix

{
stdenv,
pkg-config,
criterion,
}:
stdenv.mkDerivation rec {
name = "version-tester";
inherit (criterion) version;
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;
}