Skip to content

Commit 29559a8

Browse files
committed
Add bin/update-flakes
1 parent 5a0ecc0 commit 29559a8

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

bin/update-flakes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
root_dir=$(realpath "$(dirname "$0")"/..)
6+
7+
nix flake update
8+
9+
fd flake.nix -j 4 -x bash -c 'echo "Updating flake inputs in {//}"; cd "{//}" && nix flake update --inputs-from "$0"' "$root_dir"

dev/flake.nix

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,16 @@
220220
};
221221

222222
devShells.default = pkgs.mkShell {
223-
buildInputs =
224-
[ jq omnix php phpunit phpPackages.composer shellcheck wp-cli ];
223+
buildInputs = [
224+
fd
225+
jq
226+
omnix
227+
php
228+
phpunit
229+
phpPackages.composer
230+
shellcheck
231+
wp-cli
232+
];
225233
inputsFrom =
226234
[ config.process-compose."default".services.outputs.devShell ];
227235
};

0 commit comments

Comments
 (0)