From 7cdcf7f5e6969133af77f5ffd0360f74d5f4322b Mon Sep 17 00:00:00 2001 From: Lionello Lunesu Date: Tue, 25 Oct 2022 11:39:20 -0400 Subject: [PATCH] Add Nix files for dev shell Signed-off-by: Lionello Lunesu --- flake.lock | 40 ++++++++++++++++++++++++++++++++++++++++ flake.nix | 10 ++++++++++ shell.nix | 11 +++++++++++ 3 files changed, 61 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 shell.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..1cb9aaf --- /dev/null +++ b/flake.lock @@ -0,0 +1,40 @@ +{ + "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1659877975, + "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", + "type": "github" + }, + "original": { + "id": "flake-utils", + "type": "indirect" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1666688649, + "narHash": "sha256-i1Tq2VgXbEZKgjM2p2OqZdxcnK4FZjRZ9Oy4Ewx8gjA=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "03a00f66fc4e893dccba1579df6d0c83852e1c2c", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..658b2ea --- /dev/null +++ b/flake.nix @@ -0,0 +1,10 @@ +{ + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem + (system: + let pkgs = nixpkgs.legacyPackages.${system}; in + { + devShells.default = import ./shell.nix { inherit pkgs; }; + } + ); +} diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..9271467 --- /dev/null +++ b/shell.nix @@ -0,0 +1,11 @@ +{ pkgs ? import {} }: +with pkgs; +mkShell { + buildInputs = [ + bat + kube3d + kubernetes-helm + linkerd + step-cli + ]; +}