Add ags-watch script and update devShell build inputs
This commit is contained in:
parent
f55a2a0fe3
commit
a5b0152a2f
1 changed files with 11 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue