rater/shell.nix

26 lines
488 B
Nix
Raw Normal View History

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