mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2024-12-14 11:47:31 +00:00
22 lines
543 B
Nix
22 lines
543 B
Nix
{ config, lib, flake-parts-lib, ... }:
|
|
let
|
|
inherit (lib)
|
|
mkOption
|
|
types
|
|
;
|
|
inherit (flake-parts-lib)
|
|
mkTransposedPerSystemModule
|
|
;
|
|
in
|
|
mkTransposedPerSystemModule {
|
|
name = "packages";
|
|
option = mkOption {
|
|
type = types.lazyAttrsOf types.package;
|
|
default = { };
|
|
description = ''
|
|
An attribute set of packages to be built by <literal>nix build .#<name></literal>.
|
|
<literal>nix build .#<name></literal> will build <literal>packages.<name></literal>.
|
|
'';
|
|
};
|
|
file = ./packages.nix;
|
|
}
|