monorepo structuring

This commit is contained in:
Aylur
2024-09-01 14:17:36 +02:00
parent 408faee169
commit 3e3f045d65
203 changed files with 512 additions and 7849 deletions
+26 -3
View File
@@ -18,6 +18,7 @@
pkg-config
ninja
vala
wayland
];
buildInputs = [pkgs.glib] ++ inputs;
pname = name;
@@ -29,25 +30,47 @@
packages.${system} = rec {
default = astal;
astal = with pkgs; lib "astal" ./core [gtk3 gtk-layer-shell];
apps = with pkgs; lib "astal-apps" ./lib/apps [json-glib];
auth = with pkgs; lib "astal-auth" ./lib/auth [pam];
battery = lib "astal-battery" ./lib/battery [];
bluetooth = lib "astal-bluetooth" ./lib/bluetooth [];
hyprland = with pkgs; lib "astal-hyprland" ./lib/hyprland [json-glib];
mpris = with pkgs; lib "astal-mpris" ./lib/mpris [gvfs json-glib];
network = with pkgs; lib "astal-network" ./lib/network [networkmanager];
notifd = with pkgs; lib "astal-notifd" ./lib/notifd [json-glib gdk-pixbuf];
powerprofiles = with pkgs; lib "astal-power-profiles" ./lib/powerprofiles [json-glib];
river = with pkgs; lib "astal-river" ./lib/river [json-glib];
tray = with pkgs; lib "astal-tray" ./lib/tray [gtk3 gdk-pixbuf libdbusmenu-gtk3 json-glib];
wireplumber = lib "astal-wireplumber" ./lib/wireplumber [pkgs.wireplumber];
};
devShells.${system} = let
inputs = with pkgs; [
buildInputs = with pkgs; [
wrapGAppsHook
gobject-introspection
meson
pkg-config
ninja
vala
gtk3
gtk-layer-shell
json-glib
pam
gvfs
networkmanager
gdk-pixbuf
wireplumber
libdbusmenu-gtk3
wayland
(lua.withPackages (ps: [ps.lgi]))
gjs
];
in {
default = pkgs.mkShell {
inherit inputs;
inherit buildInputs;
};
astal = pkgs.mkShell {
inputs = inputs ++ [self.packages.${system}.astal];
buildInputs = buildInputs ++ (builtins.attrValues self.packages.${system});
};
};
};