Add binary to spec-cpu-mini

This commit is contained in:
Rodrigo Arias 2024-10-07 14:16:47 +02:00
parent dffebe4ad1
commit bc3e8513db

View File

@ -32,6 +32,9 @@ stdenv.mkDerivation rec {
for bench in $benchList; do for bench in $benchList; do
cp -a ${spec-cpu}/benchspec/CPU/$bench $out/benchspec/CPU/ cp -a ${spec-cpu}/benchspec/CPU/$bench $out/benchspec/CPU/
done done
mkdir -p $out/bin
echo -e "#!$SHELL\necho $out" > $out/bin/spec-cpu-mini
chmod +x $out/bin/spec-cpu-mini
''; '';
enableParallelBuilding = false; enableParallelBuilding = false;
hardeningDisable = [ "all" ]; hardeningDisable = [ "all" ];