From e040c66d775186cedaaccdc5948d1b39d712b76a Mon Sep 17 00:00:00 2001 From: Quinn Unger Date: Wed, 7 Oct 2026 17:11:39 +0100 Subject: [PATCH] quartus: fix sse check for quartus-prime-pro --- pkgs/quartus/quartus-unwrapped.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/quartus/quartus-unwrapped.nix b/pkgs/quartus/quartus-unwrapped.nix index 6b7fade..7b52014 100644 --- a/pkgs/quartus/quartus-unwrapped.nix +++ b/pkgs/quartus/quartus-unwrapped.nix @@ -174,11 +174,11 @@ stdenvNoCC.mkDerivation ( echo "Cleaning up logs..." rm -r $out/uninstall $out/logs - # replace /proc pentium check with a true statement. this allows usage under emulation. - ${lib.optionalString (quartusSource.variant != "pro") '' - substituteInPlace $out/quartus/adm/qenv.sh \ - --replace-fail 'grep sse /proc/cpuinfo > /dev/null 2>&1' ':' - ''} + # replace /proc sse/sse4_2 check with a true statement. this allows usage under emulation. + substituteInPlace $out/quartus/adm/qenv.sh \ + --replace-fail 'grep ${ + if (quartusSource.variant == "pro") then "sse4_2" else "sse" + } /proc/cpuinfo > /dev/null 2>&1' ':' ''; meta = { -- 2.51.2