1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00
flake-parts/modules/packages.nix

23 lines
543 B
Nix
Raw Normal View History

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)
mkTransposedPerSystemModule
2021-11-21 14:47:11 +00:00
;
2021-10-27 09:05:52 +00:00
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 .#&lt;name></literal>.
<literal>nix build .#&lt;name></literal> will build <literal>packages.&lt;name></literal>.
'';
2021-10-27 09:05:52 +00:00
};
file = ./packages.nix;
2021-10-27 09:05:52 +00:00
}