This commit is contained in:
parent
1936fadea5
commit
75ebf874f0
2 changed files with 78 additions and 0 deletions
16
modules/scripts/build.nix
Normal file
16
modules/scripts/build.nix
Normal 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 "$@"
|
||||
'';
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue