Skip to content

Commit c58c8c2

Browse files
committed
Added missing Nix packages, fixed exec sourcing for Nix in flow/Makefile.
Signed-off-by: Ryan Slawson <[email protected]>
1 parent e484a50 commit c58c8c2

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

flake.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@
2424
buildInputs = [
2525
openroad.packages.${system}.default
2626
yosys.packages.${system}.default
27+
pkgs.time
2728
pkgs.klayout
2829
pkgs.verilator
29-
pkgs.python3
30+
pkgs.perl
31+
pkgs.python3
3032
pkgs.python3Packages.pandas
3133
pkgs.python3Packages.numpy
3234
pkgs.python3Packages.firebase-admin

flow/Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,24 +232,24 @@ endif
232232
# Priority is given to
233233
# 1 user explicit set with variable in Makefile or command line, for instance setting OPENROAD_EXE
234234
# 2 ORFS compiled tools: openroad, yosys
235-
ifneq (${IN_NIX_SHELL}, "")
236-
export OPENROAD_EXE := $(shell which openroad)
235+
ifneq (${IN_NIX_SHELL},)
236+
export OPENROAD_EXE := $(shell command -v openroad)
237237
else
238238
export OPENROAD_EXE ?= $(abspath $(FLOW_HOME)/../tools/install/OpenROAD/bin/openroad)
239239
endif
240-
ifneq (${IN_NIX_SHELL}, "")
241-
export OPENSTA_EXE := $(shell which opensta)
240+
ifneq (${IN_NIX_SHELL},)
241+
export OPENSTA_EXE := $(shell command -v sta)
242242
else
243-
export OPENSTA_EXE ?= $(abspath $(FLOW_HOME)/../tools/install/OpenROAD/bin/opensta)
243+
export OPENSTA_EXE ?= $(abspath $(FLOW_HOME)/../tools/install/OpenROAD/bin/sta)
244244
endif
245245

246246
OPENROAD_ARGS = -no_init -threads $(NUM_CORES) $(OR_ARGS)
247247
OPENROAD_CMD = $(OPENROAD_EXE) -exit $(OPENROAD_ARGS)
248248
OPENROAD_NO_EXIT_CMD = $(OPENROAD_EXE) $(OPENROAD_ARGS)
249249
OPENROAD_GUI_CMD = $(OPENROAD_EXE) -gui $(OR_ARGS)
250250

251-
ifneq (${IN_NIX_SHELL}, "")
252-
YOSYS_EXE := $(shell which yosys)
251+
ifneq (${IN_NIX_SHELL},)
252+
YOSYS_EXE := $(shell command -v yosys)
253253
else
254254
YOSYS_EXE ?= $(abspath $(FLOW_HOME)/../tools/install/yosys/bin/yosys)
255255
endif

0 commit comments

Comments
 (0)