✨ feat: add fabric widgets and core framework

This commit is contained in:
sankalp committed 2025-07-30 09:30:42 +05:45
1 parent acec6bdda7
commit 6684033219
102 files changed
+12735 -24

No files matched your search

+58
View File
@@ -0,0 +1,58 @@
{
python3,
stdenv,
gtk3,
gtk-layer-shell,
cairo,
gobject-introspection,
libdbusmenu-gtk3,
gdk-pixbuf,
gnome-bluetooth,
cinnamon-desktop,
librsvg,
extraPythonPackages ? [],
extraBuildInputs ? [],
}: let
python = python3.withPackages (
ps:
with ps;
[
click
pycairo
pygobject3
loguru
psutil
python-fabric
pygobject-stubs
]
++ extraPythonPackages
);
in
stdenv.mkDerivation {
name = "run-widget";
propagatedBuildInputs =
[
gtk3
gtk-layer-shell
cairo
gobject-introspection
libdbusmenu-gtk3
gdk-pixbuf
librsvg
gnome-bluetooth
cinnamon-desktop
]
++ extraBuildInputs;
phases = ["installPhase"];
installPhase = ''
mkdir -p $out/bin
cat > $out/bin/run-widget << EOF
#!/bin/sh
GI_TYPELIB_PATH=$GI_TYPELIB_PATH \
GDK_PIXBUF_MODULE_FILE="$GDK_PIXBUF_MODULE_FILE" \
${python.interpreter} "\$@"
EOF
chmod +x $out/bin/run-widget
'';
meta.mainProgram = "run-widget";
}