Skip to content

Commit 59dc7de

Browse files
committed
Enable Xdebug
1 parent 4b1f2e3 commit 59dc7de

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

flake.nix

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,37 @@
1111
}: let
1212
system = "x86_64-linux";
1313
pkgs = import nixpkgs {inherit system;};
14+
phpWithExt = pkgs.php84.buildEnv {
15+
extensions = (
16+
{
17+
enabled,
18+
all,
19+
}:
20+
enabled
21+
++ (with all; [all.xdebug])
22+
);
23+
extraConfig = ''
24+
xdebug.mode=develop,debug,profile,trace
25+
xdebug.start_with_request=trigger
26+
'';
27+
};
1428
in {
1529
devShells.${system}.default = pkgs.mkShell {
1630
packages = with pkgs; [
17-
# PHP
18-
php84
19-
php84Packages.composer
31+
# PHP
32+
phpWithExt
33+
phpWithExt.packages.composer
2034

21-
# Node
22-
nodejs_23
35+
# Node
36+
nodejs_23
2337

24-
# Tools
25-
mailpit
38+
# Tools
39+
mailpit
2640
];
2741

2842
shellHook = ''
29-
export COMPOSER_HOME="$PWD/.dev-shell";
30-
export PATH="$PWD/.dev-shell/vendor/bin:$PATH"
43+
export COMPOSER_HOME="$PWD/.dev-shell";
44+
export PATH="$PWD/.dev-shell/vendor/bin:$PATH"
3145
'';
3246
};
3347
};

0 commit comments

Comments
 (0)