symbiyosys: fix path to bash (again)
/usr/bin/env works on NixOS normally, but previously sby would fail if used from inside the Nix sandbox.
This commit is contained in:
parent
89ff2c7b9d
commit
d1dfaa79e3
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,8 @@ stdenv.mkDerivation rec {
|
|||
substituteInPlace $out/bin/sby \
|
||||
--replace "##yosys-sys-path##" \
|
||||
"sys.path += [p + \"/share/yosys/python3/\" for p in [\"$out\", \"${yosys}\"]]"
|
||||
substituteInPlace $out/share/yosys/python3/sby_core.py \
|
||||
--replace '"/usr/bin/env", "bash"' '"${bash}/bin/bash"'
|
||||
'';
|
||||
meta = {
|
||||
description = "Tooling for Yosys-based verification flows";
|
||||
|
|
Loading…
Reference in a new issue