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:
parent
894cf27716
commit
873b55e8e3
1 changed files with 20 additions and 0 deletions
20
flake.nix
20
flake.nix
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue