mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2025-03-14 20:56:48 +00:00
16 lines
452 B
Nix
16 lines
452 B
Nix
{inputs, flake-parts-lib, ...}:
|
|
rec {
|
|
imports = [
|
|
inputs.flake-parts.flakeModules.flakeModules
|
|
|
|
# Reference `flake.flakeModules.hello` via `rec` instead of `config` to avoid infinite recursion
|
|
flake.flakeModules.hello
|
|
];
|
|
|
|
flake.flakeModules.hello = {
|
|
options.perSystem = flake-parts-lib.mkPerSystemOption ({ system, ... }: {
|
|
packages.hello_22_11 =
|
|
inputs.nixpkgs_23_05.legacyPackages.${system}.hello;
|
|
});
|
|
};
|
|
}
|