This commit is contained in:
2025-05-12 11:18:04 +02:00
parent 0b8190ae8b
commit f28dd0b6a2
3 changed files with 3 additions and 3 deletions

62
nix/derivation.nix Normal file
View File

@@ -0,0 +1,62 @@
{
lib,
python3Packages,
gtk3,
gtk-layer-shell,
cairo,
gobject-introspection,
libdbusmenu-gtk3,
gdk-pixbuf,
gnome,
cinnamon,
wrapGAppsHook3,
playerctl,
webp-pixbuf-loader,
...
}:
python3Packages.buildPythonApplication {
pname = "fabric-nix-example";
version = "0.0.1";
pyproject = true;
src = ../.;
nativeBuildInputs = [
wrapGAppsHook3
gtk3
gobject-introspection
python3Packages.pygobject3
cairo
playerctl
];
buildInputs = [
libdbusmenu-gtk3
gtk-layer-shell
gnome.gnome-bluetooth
cinnamon.cinnamon-desktop
gdk-pixbuf
playerctl
webp-pixbuf-loader
];
dependencies = with python3Packages; [
python-fabric
pywayland
];
doCheck = false;
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
meta = {
changelog = "";
description = ''
Fabrix Bar Example
'';
homepage = "https://github.com/wholikeel/fabric";
license = lib.licenses.agpl3Only;
};
}

45
nix/shell.nix Normal file
View File

@@ -0,0 +1,45 @@
{
pkgs ? import <nixpkgs> { },
}:
pkgs.mkShell {
name = "fabric-shell";
buildInputs = with pkgs; [
dbus
wayland-scanner
];
nativeBuildInputs = with pkgs; [
pkg-config
];
dbus = pkgs.dbus;
packages = with pkgs; [
ruff # Linter
basedpyright # Language server
# Required for Devshell
gtk3
gtk-layer-shell
cairo
gobject-introspection
libdbusmenu-gtk3
gdk-pixbuf
gnome.gnome-bluetooth
cinnamon.cinnamon-desktop
wayland-scanner
wayland
wayland-protocols
(python3.withPackages (
ps: with ps; [
setuptools
wheel
build
python-fabric
psutil
pywayland
python-lsp-server
pylsp-mypy
pyls-isort
python-lsp-ruff
]
))
];
}