Clan-app: devshell add schemas for gtk4; gsettings

This commit is contained in:
Johannes Kirschbauer
2024-07-24 15:17:21 +02:00
parent eeb35a26db
commit ef973ff475
2 changed files with 9 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
setuptools, setuptools,
copyDesktopItems, copyDesktopItems,
pygobject3, pygobject3,
wrapGAppsHook, wrapGAppsHook4,
gtk4, gtk4,
adwaita-icon-theme, adwaita-icon-theme,
pygobject-stubs, pygobject-stubs,
@@ -84,7 +84,7 @@ python3.pkgs.buildPythonApplication rec {
nativeBuildInputs = [ nativeBuildInputs = [
setuptools setuptools
copyDesktopItems copyDesktopItems
wrapGAppsHook wrapGAppsHook4
gobject-introspection gobject-introspection
]; ];

View File

@@ -1,5 +1,7 @@
{ {
lib, lib,
glib,
gsettings-desktop-schemas,
stdenv, stdenv,
clan-app, clan-app,
mkShell, mkShell,
@@ -33,7 +35,9 @@ mkShell {
buildInputs = buildInputs =
[ [
glib
ruff ruff
gtk4
gtk4.dev # has the demo called 'gtk4-widget-factory' gtk4.dev # has the demo called 'gtk4-widget-factory'
libadwaita.devdoc # has the demo called 'adwaita-1-demo' libadwaita.devdoc # has the demo called 'adwaita-1-demo'
] ]
@@ -60,6 +64,9 @@ mkShell {
# Add clan-cli to the python path so that we can import it without building it in nix first # Add clan-cli to the python path so that we can import it without building it in nix first
export PYTHONPATH="$GIT_ROOT/pkgs/clan-cli":"$PYTHONPATH" export PYTHONPATH="$GIT_ROOT/pkgs/clan-cli":"$PYTHONPATH"
export XDG_DATA_DIRS=${gtk4}/share/gsettings-schemas/gtk4-4.14.4:$XDG_DATA_DIRS
export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/gsettings-desktop-schemas-46.0:$XDG_DATA_DIRS
# Add the webview-ui to the .webui directory # Add the webview-ui to the .webui directory
ln -nsf ${webview-ui}/lib/node_modules/@clan/webview-ui/dist/ ./clan_app/.webui ln -nsf ${webview-ui}/lib/node_modules/@clan/webview-ui/dist/ ./clan_app/.webui