Skip to content

Commit

Permalink
devshells(php): Enable xdebug
Browse files Browse the repository at this point in the history
  • Loading branch information
ElXreno committed Jan 1, 2023
1 parent 7543af8 commit d3725b8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion devshell/php.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
{ pkgs, ... }:
let
phpMajorVer = toString 82;

php = pkgs."php${phpMajorVer}".buildEnv {
extensions = ({ enabled, all }: enabled ++ (with all; [
xdebug
]));
extraConfig = ''
xdebug.mode=debug
'';
};
in
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
pkgs."php${phpMajorVer}"
php
jetbrains.phpstorm
];

Expand Down

0 comments on commit d3725b8

Please sign in to comment.