Simplify concatApps further

This commit is contained in:
Sridhar Ratnakumar 2022-03-26 19:09:41 -04:00
parent 8db1c56767
commit 003e223b6b

View file

@ -65,9 +65,10 @@
{ {
type = "app"; type = "app";
program = checkedShellScript "concatApps" program = checkedShellScript "concatApps"
(pkgs.lib.strings.concatStringsSep (pkgs.lib.strings.concatMapStringsSep
"\n" "\n"
(pkgs.lib.lists.forEach apps (app: app.program))); (app: app.program)
apps);
}; };
in in
@ -86,7 +87,7 @@
]; ];
}; };
# Used buy `nix flake check` (but see next attribute) # Used by `nix flake check` (but see next attribute)
checks = { checks = {
format-haskell = inputs.lint-utils.linters.${system}.${haskellFormatter} ./.; format-haskell = inputs.lint-utils.linters.${system}.${haskellFormatter} ./.;
format-cabal = inputs.lint-utils.linters.${system}.cabal-fmt ./.; format-cabal = inputs.lint-utils.linters.${system}.cabal-fmt ./.;