mirror of
https://github.com/numtide/flake-utils.git
synced 2024-09-19 07:58:11 +03:00
expose examples as templates (#63)
This commit is contained in:
parent
04b4d989fd
commit
a97445c4fc
15
flake.nix
15
flake.nix
@ -2,5 +2,20 @@
|
|||||||
description = "Pure Nix flake utility functions";
|
description = "Pure Nix flake utility functions";
|
||||||
outputs = { self }: {
|
outputs = { self }: {
|
||||||
lib = import ./.;
|
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 New Issue
Block a user