mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
enhance nix-shell and add CI
This commit is contained in:
parent
ffaa63af55
commit
c3fa598922
7 changed files with 99 additions and 41 deletions
30
shell.nix
30
shell.nix
|
|
@ -1,17 +1,13 @@
|
|||
{
|
||||
system ? builtins.currentSystem,
|
||||
pkgs,
|
||||
}:
|
||||
let
|
||||
devshellGitRev = "709fe4d04a9101c9d224ad83f73416dce71baf21";
|
||||
|
||||
devshellSrc = fetchTarball {
|
||||
url = "https://github.com/numtide/devshell/archive/${devshellGitRev}.tar.gz";
|
||||
sha256 = "1px9cqfshfqs1b7ypyxch3s3ymr4xgycy1krrcg7b97rmmszvsqr";
|
||||
};
|
||||
|
||||
devshell = import devshellSrc { inherit system pkgs; };
|
||||
|
||||
in
|
||||
devshell.fromTOML ./devshell.toml
|
||||
|
||||
(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;
|
||||
}
|
||||
)
|
||||
{
|
||||
src = ./.;
|
||||
}).shellNix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue