From f8ee686f82ee769fe42aee5b92dc0f964b1b35f2 Mon Sep 17 00:00:00 2001 From: Marie Ramlow Date: Sat, 2 Sep 2023 23:04:46 +0200 Subject: [PATCH] flake: add update script --- nix/shell.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nix/shell.nix b/nix/shell.nix index e29add666..8cbddde73 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -84,6 +84,18 @@ ${npm} run dev & ${php} artisan serve ''; + update-nix-package-deps.exec = '' + set -eo pipefail + + pushd nix/package + ./update.sh + pushd web + ./update.sh + popd + popd + + nix fmt ./nix/package + ''; artisan.exec = '' # Unset .env variables, so laravel reads the .env files by itself ${unsetEnv}