1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 15:14:08 +00:00

introduced build shell for minimal deps

This commit is contained in:
Rene Schallner 2023-04-14 20:38:02 +02:00
parent 894cf27716
commit 873b55e8e3

View file

@ -72,6 +72,26 @@
''; '';
}; };
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 # For compatibility with older versions of the `nix` binary
devShell = self.devShells.${system}.default; devShell = self.devShells.${system}.default;
} }