mirror of
https://gitlab.com/TECHNOFAB/soonix.git
synced 2026-02-01 23:05:06 +01:00
feat: make soonix a bit more flexible with and without devshell
This commit is contained in:
parent
3baef660cf
commit
690332ceea
6 changed files with 106 additions and 37 deletions
|
|
@ -4,6 +4,7 @@
|
|||
...
|
||||
}: let
|
||||
inherit (inputs) pkgs devshell soonix treefmt;
|
||||
soonixShellHook = cell.soonix.shellHook;
|
||||
in {
|
||||
default = devshell.mkShell {
|
||||
imports = [soonix.devshellModule];
|
||||
|
|
@ -17,19 +18,6 @@ in {
|
|||
};
|
||||
})
|
||||
];
|
||||
|
||||
soonix.hooks.test = {
|
||||
output = "test.yaml";
|
||||
generator = "nix";
|
||||
data = {
|
||||
name = "soonix-test";
|
||||
version = "1.0.0";
|
||||
};
|
||||
opts.format = "yaml";
|
||||
hook = {
|
||||
mode = "copy";
|
||||
gitignore = true;
|
||||
};
|
||||
};
|
||||
inherit soonixShellHook;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
23
nix/repo/soonix.nix
Normal file
23
nix/repo/soonix.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
inherit (inputs) soonix;
|
||||
in
|
||||
(soonix.make {
|
||||
hooks = {
|
||||
test = {
|
||||
output = "test.yaml";
|
||||
generator = "nix";
|
||||
data = {
|
||||
name = "soonix-test";
|
||||
version = "1.0.0";
|
||||
};
|
||||
opts.format = "yaml";
|
||||
hook = {
|
||||
mode = "copy";
|
||||
gitignore = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}).config
|
||||
Loading…
Add table
Add a link
Reference in a new issue