✨ feat: add fabric widgets and core framework
This commit is contained in:
1 parent
acec6bdda7
commit
6684033219
102 files changed
+12735
-24
No files matched your search
@@ -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";
|
||||
}
|
||||
Reference in new issue
Block a user