Copy specinvoke in spec-cpu-mini

This commit is contained in:
Rodrigo Arias 2024-10-08 09:27:32 +02:00
parent c2fcd40bc1
commit a9e149a125

View File

@ -1,6 +1,7 @@
{
stdenv
, spec-cpu
, spec-cpu-tools
}:
stdenv.mkDerivation rec {
@ -48,7 +49,9 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
echo -e "#!$SHELL\necho $out" > $out/bin/spec-cpu-mini
chmod +x $out/bin/spec-cpu-mini
cp $(command -v specinvoke) $out/bin
'';
nativeBuildInputs = [ spec-cpu-tools ];
enableParallelBuilding = false;
hardeningDisable = [ "all" ];
dontStrip = true;