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:
parent
7dba235c39
commit
cdf7363fcd
1 changed files with 19 additions and 0 deletions
19
flake.nix
19
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue