Add build and build-adoc scripts
All checks were successful
/ check (push) Successful in 1m51s

This commit is contained in:
Oliver Davies 2025-09-04 21:02:57 +01:00
parent 1936fadea5
commit 75ebf874f0
2 changed files with 78 additions and 0 deletions

16
modules/scripts/build.nix Normal file
View file

@ -0,0 +1,16 @@
{
flake.modules.homeManager.base =
{ pkgs, ... }:
{
home.packages = [
(pkgs.writeShellApplication {
name = "build";
text = ''
test -r book/index.adoc && exec build-adoc "$@"
test -x build && exec ./build "$@"
'';
})
];
};
}