lisp-modules: add nixfmt step

Recently the imported.nix file was re-formatted using nixfmt. Adding that step
to the QL import script, to keep up the spirit. Keeps diffs smaller.
This commit is contained in:
Kasper Gałkowski
2025-07-13 21:27:07 +02:00
parent 6b3a446632
commit 7992efedf0
2 changed files with 22 additions and 13 deletions
@@ -48,8 +48,12 @@
(format t "Dumped nix file to ~a~%"
(truename "imported.nix")))
(defun run-nix-formatter ()
(uiop:run-program '("nixfmt" "imported.nix")))
(defun main ()
(format t "~%")
(init-quicklisp)
(run-importers)
(gen-nix-file))
(gen-nix-file)
(run-nix-formatter))
+17 -12
View File
@@ -1,18 +1,23 @@
let
pkgs = import ../../../. { };
inherit (pkgs) mkShellNoCC sbcl nixfmt-rfc-style;
in
pkgs.mkShell {
nativeBuildInputs = [
(pkgs.sbcl.withPackages (
ps: with ps; [
alexandria
str
dexador
cl-ppcre
sqlite
arrow-macros
jzon
]
mkShellNoCC {
packages = [
nixfmt-rfc-style
(sbcl.withPackages (
ps:
builtins.attrValues {
inherit (ps)
alexandria
str
dexador
cl-ppcre
sqlite
arrow-macros
jzon
;
}
))
];
}