Fix nix run .#clan-app

This commit is contained in:
Qubasa
2025-01-04 01:34:28 +01:00
parent e136e146d5
commit 44a2ce1583
8 changed files with 85 additions and 66 deletions

View File

@@ -19,6 +19,7 @@
pytest-xdist, # Run tests in parallel on multiple cores
pytest-timeout, # Add timeouts to your tests
webview-ui,
webview-lib,
fontconfig,
}:
let
@@ -48,7 +49,7 @@ let
# Runtime binary dependencies required by the application
runtimeDependencies = [
webview-lib
];
# Dependencies required for running tests
@@ -77,10 +78,9 @@ python3.pkgs.buildPythonApplication rec {
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=(
# Use software rendering for webkit, mesa causes random crashes with css.
--set WEBKIT_DISABLE_COMPOSITING_MODE 1
--set FONTCONFIG_FILE ${fontconfig.out}/etc/fonts/fonts.conf
--set WEBUI_PATH "$out/${python3.sitePackages}/clan_app/.webui"
--set WEBVIEW_LIB_DIR "${webview-lib}/lib"
# This prevents problems with mixed glibc versions that might occur when the
# cli is called through a browser built against another glibc
--unset LD_LIBRARY_PATH