From cdf7363fcd7ed7f443136beed1f9c282b6674beb Mon Sep 17 00:00:00 2001 From: Rene Schallner Date: Fri, 14 Apr 2023 20:40:13 +0200 Subject: [PATCH] added build devshell in flake for min deps --- flake.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/flake.nix b/flake.nix index 72d9ac8..7ee2d11 100644 --- a/flake.nix +++ b/flake.nix @@ -72,6 +72,25 @@ ''; }; + devShells.build = pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + zigpkgs.master + ]; + + buildInputs = with pkgs; [ + # we need a version of bash capable of being interactive + # as opposed to a bash just used for building this flake + # in non-interactive mode + bashInteractive + ]; + + shellHook = '' + # once we set SHELL to point to the interactive bash, neovim will + # launch the correct $SHELL in its :terminal + export SHELL=${pkgs.bashInteractive}/bin/bash + ''; + }; + # For compatibility with older versions of the `nix` binary devShell = self.devShells.${system}.default; }