mirror of
https://github.com/numtide/flake-utils.git
synced 2024-12-14 11:47:31 +00:00
expose examples as templates (#63)
This commit is contained in:
parent
04b4d989fd
commit
a97445c4fc
1 changed files with 15 additions and 0 deletions
15
flake.nix
15
flake.nix
|
@ -2,5 +2,20 @@
|
|||
description = "Pure Nix flake utility functions";
|
||||
outputs = { self }: {
|
||||
lib = import ./.;
|
||||
templates = {
|
||||
simple-flake = {
|
||||
path = ./examples/simple-flake;
|
||||
description = "A flake using flake-utils.lib.simpleFlake";
|
||||
};
|
||||
each-system = {
|
||||
path = ./examples/each-system;
|
||||
description = "A flake using flake-utils.lib.eachDefaultSystem";
|
||||
};
|
||||
check-utils = {
|
||||
path = ./examples/check-utils;
|
||||
description = "A flake with tests";
|
||||
};
|
||||
};
|
||||
defaultTemplate = self.templates.each-system;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue