mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2024-12-14 11:47:31 +00:00
13dddfdc67
This reflects the actual requirements of the core flake-parts functionality and removes any possible confusion about where lib comes from (always flake-parts's input) vs where pkgs comes from (always the flake's nixpkgs input). Flakes which use flake-parts should only ever have to override its input in the very unlikely event of a bug in lib. Hopefully lib will be separated into its own flake some day, which will also make this a much smaller footprint.
26 lines
589 B
Nix
26 lines
589 B
Nix
{
|
|
description = "Flake basics described using the module system";
|
|
|
|
inputs = {
|
|
nixpkgs-lib.url = "github:NixOS/nixpkgs/nixos-unstable?dir=lib";
|
|
};
|
|
|
|
outputs = { self, nixpkgs-lib, ... }: {
|
|
lib = import ./lib.nix { inherit (nixpkgs-lib) lib; };
|
|
templates = {
|
|
default = {
|
|
path = ./template/default;
|
|
description = ''
|
|
A minimal flake using flake-parts.
|
|
'';
|
|
};
|
|
multi-module = {
|
|
path = ./template/multi-module;
|
|
description = ''
|
|
A minimal flake using flake-parts.
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|