2022-05-25 14:36:33 +00:00
|
|
|
{ config, lib, flake-parts-lib, ... }:
|
2021-10-27 09:05:52 +00:00
|
|
|
let
|
|
|
|
inherit (lib)
|
|
|
|
mkOption
|
|
|
|
types
|
|
|
|
;
|
2022-05-25 14:36:33 +00:00
|
|
|
inherit (flake-parts-lib)
|
2022-10-30 11:08:12 +00:00
|
|
|
mkTransposedPerSystemModule
|
2021-11-21 14:47:11 +00:00
|
|
|
;
|
2021-10-27 09:05:52 +00:00
|
|
|
in
|
2022-10-30 11:08:12 +00:00
|
|
|
mkTransposedPerSystemModule {
|
|
|
|
name = "packages";
|
|
|
|
option = mkOption {
|
|
|
|
type = types.lazyAttrsOf types.package;
|
|
|
|
default = { };
|
|
|
|
description = ''
|
2022-11-11 05:40:37 +00:00
|
|
|
An attribute set of packages to be built by [`nix build`](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-build.html).
|
|
|
|
|
|
|
|
`nix build .#<name>` will build `packages.<name>`.
|
2022-10-30 11:08:12 +00:00
|
|
|
'';
|
2021-10-27 09:05:52 +00:00
|
|
|
};
|
2022-10-30 11:08:12 +00:00
|
|
|
file = ./packages.nix;
|
2021-10-27 09:05:52 +00:00
|
|
|
}
|