From 3e3f045d650a839d21f7b649da7aa5c19bd2e38b Mon Sep 17 00:00:00 2001 From: Aylur Date: Sun, 1 Sep 2024 14:17:36 +0200 Subject: monorepo structuring --- flake.nix | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index d34c09d..5d2503f 100644 --- a/flake.nix +++ b/flake.nix @@ -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}); }; }; }; -- cgit v1.2.3