From cd905df8b483ec6eb0c978bc67f204de9e75cbd0 Mon Sep 17 00:00:00 2001 From: aaron Date: Tue, 23 Jun 2026 10:53:21 +0200 Subject: [PATCH] fix(siril): add python3 to the siril wrapper so it sees it in its runtime path --- modules/nixos/astro.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/nixos/astro.nix b/modules/nixos/astro.nix index 81fa5f7..15936eb 100644 --- a/modules/nixos/astro.nix +++ b/modules/nixos/astro.nix @@ -11,8 +11,14 @@ let name = "siril-with-plugins"; paths = [ pkgs.siril ]; nativeBuildInputs = [ pkgs.makeWrapper ]; + # Siril bootstraps its sirilpy venv at first run by locating a `python3` + # on PATH. nixpkgs only *propagates* python3 from the siril derivation (it + # isn't on the runtime PATH), so without the --prefix PATH below the GUI + # fails with "Python not found in system PATH" and never creates + # ~/.local/share/siril/venv. We add the same interpreter siril references. postBuild = '' wrapProgram $out/bin/siril \ + --prefix PATH : ${lib.makeBinPath [ pkgs.python3 ]} \ --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath (with pkgs; [ stdenv.cc.cc.lib # libstdc++ / libgcc_s / libgomp (numpy etc.) zlib