1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 23:24:09 +00:00

added build devshell in flake for min deps

This commit is contained in:
Rene Schallner 2023-04-14 20:40:13 +02:00
parent 7dba235c39
commit cdf7363fcd

View file

@ -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;
}