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:
@@ -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))
|
||||
|
||||
@@ -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
|
||||
;
|
||||
}
|
||||
))
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user