glasgow,mcy: use getExe to get yosy bin path

This commit is contained in:
blokyk
2025-12-20 01:18:30 +00:00
parent 9f84b1eab5
commit d47b689711
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ python3.pkgs.buildPythonApplication rec {
makeWrapperArgs = [
"--set"
"YOSYS"
"${yosys}/bin/yosys"
(lib.getExe yosys)
"--set"
"ICEPACK"
"${icestorm}/bin/icepack"
+2 -2
View File
@@ -26,13 +26,13 @@ stdenv.mkDerivation {
patchShebangs .
substituteInPlace mcy.py \
--replace yosys '${yosys}/bin/yosys' \
--replace yosys '${lib.getExe yosys}' \
--replace 'os.execvp("mcy-dash"' "os.execvp(\"$out/bin/mcy-dash\""
substituteInPlace mcy-dash.py \
--replace 'app.run(debug=True)' 'app.run(host="0.0.0.0",debug=True)' \
--replace 'subprocess.Popen(["mcy"' "subprocess.Popen([\"$out/bin/mcy\""
substituteInPlace scripts/create_mutated.sh \
--replace yosys '${yosys}/bin/yosys'
--replace yosys '${lib.getExe yosys}'
'';
# the build needs a bit of work...