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:
@@ -26,6 +26,8 @@ stdenv.mkDerivation rec {
|
|||||||
substituteInPlace $out/bin/sby \
|
substituteInPlace $out/bin/sby \
|
||||||
--replace "##yosys-sys-path##" \
|
--replace "##yosys-sys-path##" \
|
||||||
"sys.path += [p + \"/share/yosys/python3/\" for p in [\"$out\", \"${yosys}\"]]"
|
"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 = {
|
meta = {
|
||||||
description = "Tooling for Yosys-based verification flows";
|
description = "Tooling for Yosys-based verification flows";
|
||||||
|
|||||||
Reference in New Issue
Block a user