mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +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
shell.nix
19
shell.nix
|
|
@ -1,13 +1,8 @@
|
|||
(import
|
||||
(
|
||||
let
|
||||
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||||
in
|
||||
fetchTarball {
|
||||
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
||||
sha256 = lock.nodes.flake-compat.locked.narHash;
|
||||
}
|
||||
)
|
||||
{
|
||||
{ system ? builtins.currentSystem }:
|
||||
let
|
||||
in (
|
||||
(import ./lib/compat.nix).flake-compat {
|
||||
src = ./.;
|
||||
}).shellNix
|
||||
inherit system;
|
||||
}
|
||||
).shellNix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue