1
0
Fork 0
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:
Jörg Thalheim 2022-05-17 08:58:38 +01:00 committed by GitHub
parent 04b4d989fd
commit a97445c4fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
};
}