mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
ref: non-flake compatibility
since this is purely a legacy concern (both default.nix and shell.nix), we avoid to include the flake-compat as a flake input. (even though unused inputs are lazily fetched - for style & clarity)
This commit is contained in:
parent
ded0db9e3f
commit
ee9b4adfc8
7 changed files with 36 additions and 70 deletions
19
flake.nix
19
flake.nix
|
|
@ -5,12 +5,9 @@
|
|||
flake-utils.url = "github:numtide/flake-utils";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs";
|
||||
devshell-flake.url = "github:numtide/devshell";
|
||||
flake-compat = { url = "github:edolstra/flake-compat"; flake = false; };
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, devshell-flake, flake-compat }:
|
||||
{ modules = import ./modules; }
|
||||
//
|
||||
outputs = { self, nixpkgs, flake-utils, devshell-flake }:
|
||||
(flake-utils.lib.eachDefaultSystem
|
||||
(system:
|
||||
let
|
||||
|
|
@ -27,29 +24,23 @@
|
|||
in
|
||||
rec {
|
||||
devShell = with pkgs; devshell.mkShell
|
||||
{
|
||||
imports = [
|
||||
(devshell.importTOML ./devshell.toml)
|
||||
];
|
||||
};
|
||||
{ imports = [ (devshell.importTOML ./devshell.toml) ]; };
|
||||
|
||||
packages = flake-utils.lib.flattenTree {
|
||||
inherit (pkgs)
|
||||
kubenix
|
||||
kubernetes
|
||||
kubectl
|
||||
;
|
||||
};
|
||||
|
||||
hydraJobs = {
|
||||
inherit packages;
|
||||
};
|
||||
defaultPackage = pkgs.kubenix;
|
||||
}
|
||||
)
|
||||
) //
|
||||
{
|
||||
modules = import ./src/modules;
|
||||
overlay = final: prev: {
|
||||
kubenix = prev.callPackage ./kubenix.nix { };
|
||||
kubenix = prev.callPackage ./src/kubenix.nix { };
|
||||
# up to date versions of their nixpkgs equivalents
|
||||
kubernetes = prev.callPackage ./pkgs/applications/networking/cluster/kubernetes
|
||||
{ };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue