Add ags-watch script and update devShell build inputs

This commit is contained in:
Chris Toph 2025-05-09 23:50:07 -04:00
parent ba344a80d4
commit 8116060e57

View file

@ -34,6 +34,7 @@
tray
wireplumber
];
in
{
packages.${system} = {
@ -47,18 +48,26 @@
# additional libraries and executables to add to gjs' runtime
extraPackages = extraAgsLib ++ [ pkgs.fzf ];
};
# Ags hot reload
ags-watch = pkgs.writeScriptBin "ags-watch" ''
#!${pkgs.fish}/bin/fish
ls **.tsx | ${pkgs.lib.getExe pkgs.entr} -r ags run -d ./ --gtk4
'';
};
devShells.${system} = {
default = pkgs.mkShell {
buildInputs = [
# pkgs.typescript-language-server
pkgs.biome
pkgs.fish
pkgs.glib
pkgs.glibc
pkgs.nodejs
pkgs.pnpm
pkgs.biome
pkgs.watchexec
self.packages.${system}.ags-watch
# includes astal3 astal4 astal-io by default
(ags.packages.${system}.default.override {
extraPackages = extraAgsLib;