yosys: set meta.mainProgram to "yosys" (#472565)

This commit is contained in:
Gergő Gutyina
2025-12-27 15:10:07 +00:00
committed by GitHub
3 changed files with 4 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...
+1
View File
@@ -196,6 +196,7 @@ stdenv.mkDerivation (finalAttrs: {
changelog = "https://github.com/YosysHQ/yosys/releases/tag/v${finalAttrs.version}";
license = lib.licenses.isc;
platforms = lib.platforms.all;
mainProgram = "yosys";
maintainers = with lib.maintainers; [
shell
thoughtpolice