From 5ba33418d895e6ee940bcebaed7d435b17eb8bc4 Mon Sep 17 00:00:00 2001 From: Shupei Fan Date: Sun, 8 Dec 2024 14:57:09 +0000 Subject: [PATCH] fixup! [nix] add vcs sim profile flow --- nix/t1/run/run-vcs-emu.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/nix/t1/run/run-vcs-emu.nix b/nix/t1/run/run-vcs-emu.nix index 3752fd41b..cb7ca0a6d 100644 --- a/nix/t1/run/run-vcs-emu.nix +++ b/nix/t1/run/run-vcs-emu.nix @@ -1,4 +1,11 @@ -{ lib, pkgs, stdenvNoCC, zstd, jq, offline-checker, snps-fhs-env }: +{ lib +, stdenvNoCC +, zstd +, jq +, offline-checker +, snps-fhs-env +, writeShellScriptBin +}: { emulator , dpilib ? null @@ -18,7 +25,7 @@ stdenvNoCC.mkDerivation (rec { # to open 'profileReport.html' in firefox, # set 'security.fileuri.strict_origin_policy = false' in 'about:config' - profile = pkgs.writeShellScriptBin "runSimProfile" '' + profile = writeShellScriptBin "runSimProfile" '' ${emuDriver} \ ${lib.escapeShellArgs emuDriverArgs} \ -simprofile time \ @@ -56,7 +63,6 @@ stdenvNoCC.mkDerivation (rec { mkdir -p "$out" - emuDriver="${emuDriver}" emuDriverArgs="${lib.escapeShellArgs emuDriverArgs}" rtlEventOutPath="$out/${testCase.pname}-rtl-event.jsonl"