parent
67df8c627c
commit
2b8cc3634d
2 changed files with 29 additions and 0 deletions
28
extras/bundlers.nix
Normal file
28
extras/bundlers.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ lib
|
||||
, flake-parts-lib
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
inherit
|
||||
(lib)
|
||||
mkOption
|
||||
types
|
||||
;
|
||||
inherit
|
||||
(flake-parts-lib)
|
||||
mkTransposedPerSystemModule
|
||||
;
|
||||
in
|
||||
mkTransposedPerSystemModule {
|
||||
name = "bundlers";
|
||||
option = mkOption {
|
||||
type = types.lazyAttrsOf (types.functionTo types.package);
|
||||
default = { };
|
||||
description = ''
|
||||
An attribute set of bundlers to be used by [`nix bundle`](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-bundle.html).
|
||||
|
||||
`nix bundle --bundler .#<name>` <derivation> will bundle <derivation> using the bundler `bundlers.<name>`.
|
||||
'';
|
||||
};
|
||||
file = ./bundlers.nix;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue