Skip to content

Commit

Permalink
expose examples as templates (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 authored May 17, 2022
1 parent 04b4d98 commit a97445c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
}

0 comments on commit a97445c

Please sign in to comment.