remmina: fix Python 3 not available on PATH (#410017)

This commit is contained in:
Aleksana 2025-06-01 22:17:53 +08:00 committed by GitHub
commit 2a5cd25f40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -124,6 +124,9 @@ stdenv.mkDerivation (finalAttrs: {
"-DHAVE_LIBAPPINDICATOR=OFF"
"-DWITH_CUPS=OFF"
"-DWITH_ICON_CACHE=OFF"
# Don't use system installed Python like on GitHub Actions runners
"-DPYTHON_INCLUDE_DIR=${python3}/include/${python3.libPrefix}"
"-DPYTHON_LIBRARY=${python3}/lib/libpython${python3.pythonVersion}${stdenv.hostPlatform.extensions.sharedLibrary}"
];
dontWrapQtApps = true;
@ -135,6 +138,7 @@ stdenv.mkDerivation (finalAttrs: {
${lib.optionalString stdenv.hostPlatform.isDarwin ''
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS"
''}
--prefix PATH : "${lib.makeBinPath [ python3 ]}"
)
'';