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