mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
fix nested job generators packages
This commit is contained in:
parent
2891ede6d4
commit
b826b4502c
3 changed files with 10 additions and 4 deletions
|
|
@ -33,7 +33,7 @@ To support a new Kubernetes version:
|
|||
|
||||
- Build and copy the updated specs to [`modules/generated/`](./modules/generated/)
|
||||
|
||||
nix build '.#generators.k8s'
|
||||
nix build '.#generate-k8s'
|
||||
cp ./result/* modules/generated/
|
||||
|
||||
## Tests
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ Or, if you're not using flakes, a `default.nix` file (build with `nix-build`):
|
|||
|
||||
Either way the JSON manifests will be written to `./result`.
|
||||
|
||||
See [./docs/examples](./docs/examples) for more.
|
||||
|
||||
## Attribution
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
{pkgs}: {
|
||||
generators = pkgs.callPackage ./generators {};
|
||||
}
|
||||
{pkgs}: let
|
||||
sets = pkgs.lib.attrsets;
|
||||
in
|
||||
{}
|
||||
// (
|
||||
sets.mapAttrs' (name: value: sets.nameValuePair "generate-${name}" value)
|
||||
(builtins.removeAttrs (pkgs.callPackage ./generators {}) ["override" "overrideDerivation"])
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue