rater/shell.nix

25 lines
488 B
Nix

{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
# PHP and tools
(php84.withExtensions ({ enabled, all }: enabled ++ (with all; [ pdo_pgsql pgsql ])))
php84Packages.composer
symfony-cli
# Container tools
podman
podman-compose
# Utilities
git
curl
gnumake
];
shellHook = ''
alias stan="vendor/bin/phpstan analyse --memory-limit=1G"
export SHELL=${pkgs.zsh}/bin/zsh
exec ${pkgs.zsh}/bin/zsh
'';
}