Skip to content

Commit

Permalink
Sync Flaky template
Browse files Browse the repository at this point in the history
This also causes us to upgrade to Nixpkgs 24.05.
  • Loading branch information
sellout committed Aug 1, 2024
1 parent f9b9983 commit 875fa64
Show file tree
Hide file tree
Showing 11 changed files with 143 additions and 181 deletions.
6 changes: 6 additions & 0 deletions .cache/vale/config/vocabularies/elisp-reader/accept.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .config/mustache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ project:
name: "elisp-reader"
repo: "sellout/elisp-reader.el"
summary: "A custom Lisp reader written in Elisp"
version: "0.1.0"
type: { name: "emacs-lisp" }
36 changes: 21 additions & 15 deletions .config/project/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{config, flaky, lib, ...}: {
{
config,
flaky,
lib,
supportedSystems,
...
}: {
project = {
name = "elisp-reader";
summary = "A custom Lisp reader written in Elisp";
Expand Down Expand Up @@ -51,25 +57,25 @@
## CI
services.garnix = {
enable = true;
builds.exclude = [
# TODO: Remove once garnix-io/garnix#285 is fixed.
"homeConfigurations.x86_64-darwin-${config.project.name}-example"
];
## TODO: Remove once garnix-io/garnix#285 is fixed.
builds.exclude = ["homeConfigurations.x86_64-darwin-example"];
};
## FIXME: Shouldn’t need `mkForce` here (or to duplicate the base contexts).
## Need to improve module merging.
services.github.settings.branches.main.protection.required_status_checks.contexts =
lib.mkForce
(lib.concatMap flaky.lib.garnixChecks [
(sys: "check elisp-doctor [${sys}]")
(sys: "check elisp-lint [${sys}]")
(sys: "homeConfig ${sys}-${config.project.name}-example")
(sys: "package default [${sys}]")
(sys: "package emacs-${config.project.name} [${sys}]")
## FIXME: These are duplicated from the base config
(sys: "check formatter [${sys}]")
(sys: "devShell default [${sys}]")
]);
(flaky.lib.forGarnixSystems supportedSystems (sys: [
"check elisp-doctor [${sys}]"
"check elisp-lint [${sys}]"
"homeConfig ${sys}-example"
"package default [${sys}]"
"package emacs-${config.project.name} [${sys}]"
## FIXME: These are duplicated from the base config
"check formatter [${sys}]"
"check project-manager-files [${sys}]"
"check vale [${sys}]"
"devShell default [${sys}]"
]));

## publishing
services.flakehub.enable = true;
Expand Down
1 change: 1 addition & 0 deletions .gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/renovate.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/settings.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 18 additions & 18 deletions elisp-reader.el
Original file line number Diff line number Diff line change
Expand Up @@ -483,26 +483,26 @@ Returns nil if ELT isn’t in LST."
"Replace occurrences of CELL in ORIG with ORIG."
(cl-labels
((subst-in (thing)
(cond
((eq thing cell)
orig)
((consp thing)
(subst-in-list thing)
thing)
((stringp thing)
thing)
((arrayp thing)
(subst-in-array thing)
thing)
(t
thing)))
(cond
((eq thing cell)
orig)
((consp thing)
(subst-in-list thing)
thing)
((stringp thing)
thing)
((arrayp thing)
(subst-in-array thing)
thing)
(t
thing)))
(subst-in-list (lst)
(rplaca lst (subst-in (car lst)))
(rplacd lst (subst-in (cdr lst))))
(rplaca lst (subst-in (car lst)))
(rplacd lst (subst-in (cdr lst))))
(subst-in-array (array)
(cl-loop for el across array
for i upfrom 0
do (aset array i (subst-in el)))))
(cl-loop for el across array
for i upfrom 0
do (aset array i (subst-in el)))))
(subst-in orig)))

(defconst er-*all-digits* '( ?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9
Expand Down
Loading

0 comments on commit 875fa64

Please sign in to comment.