From e9eb05fc7d05009bd31fc0c3f9140f3d584ff932 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sun, 22 Jun 2025 18:07:04 +0200 Subject: add default.nix and shell.nix --- ...nvocation-use-python-script-as-entrypoint.patch | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 0002-plugin-invocation-use-python-script-as-entrypoint.patch (limited to '0002-plugin-invocation-use-python-script-as-entrypoint.patch') diff --git a/0002-plugin-invocation-use-python-script-as-entrypoint.patch b/0002-plugin-invocation-use-python-script-as-entrypoint.patch new file mode 100644 index 00000000..3db643c9 --- /dev/null +++ b/0002-plugin-invocation-use-python-script-as-entrypoint.patch @@ -0,0 +1,34 @@ +From a86412c57833c24743214c9d3abb76093365769f Mon Sep 17 00:00:00 2001 +From: tropf +Date: Mon, 5 Aug 2024 21:26:13 +0200 +Subject: [PATCH 2/3] plugin invocation: use python script as entrypoint + +Ink/Stitch is invoked by calling a script with command line parameters. +Depending on the distribution format, this is bundled into a standalone +binary -- at least for vanilla Ink/Stitch. For the nix version, we +follow manual install, which does *not* bundle the file. Hence, the +generation is patched to treat this packaged install as manual install, +and to still refer to the python file. + +To keep the patchset small, only an if statement is changed, with the +intent of only using the else path. +--- + lib/inx/utils.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/inx/utils.py b/lib/inx/utils.py +index 9168f2a2..00313639 100755 +--- a/lib/inx/utils.py ++++ b/lib/inx/utils.py +@@ -21,7 +21,7 @@ def build_environment(): + extensions=['jinja2.ext.i18n'] + ) + +- if "BUILD" in os.environ: ++ if False: + # building a ZIP release, with inkstitch packaged as a binary + # Command tag and icons path + if sys.platform == "win32": +-- +2.36.0 + -- cgit v1.2.3