yosys: set meta.mainProgram to "yosys" (#472565)
This commit is contained in:
@@ -99,7 +99,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
makeWrapperArgs = [
|
||||
"--set"
|
||||
"YOSYS"
|
||||
"${yosys}/bin/yosys"
|
||||
(lib.getExe yosys)
|
||||
"--set"
|
||||
"ICEPACK"
|
||||
"${icestorm}/bin/icepack"
|
||||
|
||||
@@ -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...
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user