Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions compiler/verify/run_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,15 @@ def run_script(cell_name, script="lvs"):
start = time.time()
with open(outfile, 'wb') as fo, open(errfile, 'wb') as fe:
if OPTS.use_nix:
# The script runs in openram_temp, which has no flake.nix, so the
# flake has to be named explicitly or nix searches up from the temp
# directory, fails, and the script never runs at all.
repo_root = os.path.abspath(os.path.join(os.environ["OPENRAM_HOME"], ".."))
p_cmd = [
"nix",
"--extra-experimental-features", "nix-command flakes",
"develop",
"path:{}".format(repo_root),
"--command",
scriptpath,
]
Expand Down