From 05846070a5ca5e7c0ee515da0cb1f97c37f2d638 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Fri, 12 Apr 2024 18:27:02 +0200 Subject: [PATCH] Add shell env --- README.md | 6 ++++++ flake.nix | 4 ++++ shell.nix | 9 +++++++++ 3 files changed, 19 insertions(+) create mode 100644 shell.nix diff --git a/README.md b/README.md index 16a1b96..9f22ca0 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,12 @@ in Then you can use with myflake-pkgs.maildev in your project +## How to update packages + +Run `nix develop` or `nix-shell` + +Then run `nvfetcher` inside current shell + ## Packages available - maildev : Node (Auto updated with nvfetcher) diff --git a/flake.nix b/flake.nix index e1b74c0..9dfe193 100644 --- a/flake.nix +++ b/flake.nix @@ -17,5 +17,9 @@ packages = import ./pkgs { inherit pkgs; }; + + devShells = { + default = import ./shell.nix { inherit pkgs; }; + }; }); } \ No newline at end of file diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..133cc69 --- /dev/null +++ b/shell.nix @@ -0,0 +1,9 @@ +{ + pkgs ? import {} +}: + +pkgs.mkShell { + buildInputs = with pkgs; [ + nvfetcher + ]; +} \ No newline at end of file