1
1
Fork 0
mirror of https://github.com/the-nix-way/dev-templates synced 2024-05-06 08:46:07 +02:00

Fix shellcheck issue in check script

This commit is contained in:
Luc Perkins 2024-04-15 17:15:36 -03:00
parent 4a341f857d
commit 7c3ef7b734
No known key found for this signature in database
GPG Key ID: 16DB1108FB591835

View File

@ -13,11 +13,25 @@
text = "nixpkgs-fmt '**/*.nix'";
};
check = final.writeShellApplication {
name = "check";
# only run this locally, as Actions will run out of disk space
build = final.writeShellApplication {
name = "build";
text = ''
SYSTEM=$(nix eval --impure --raw --expr 'builtins.currentSystem')
for dir in */; do # Iterate through all the templates
(
cd "''${dir}"
nix build ".#devShells.''${SYSTEM}.default"
)
done
'';
};
check = final.writeShellApplication {
name = "check";
text = ''
for dir in */; do # Iterate through all the templates
(
cd "''${dir}"
@ -73,7 +87,7 @@
{
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [ check format update ];
packages = with pkgs; [ build check format update ];
};
});