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