-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathshell.nix
35 lines (35 loc) · 920 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs.buildPackages;
let
unstable = import (builtins.fetchTarball https://github.com/nixos/nixpkgs/tarball/master) {};
php83 = unstable.php83.buildEnv {
extensions = ({ enabled, all }: enabled ++ (with all; [
apcu
ctype
iconv
intl
mbstring
pdo
redis
xdebug
xsl
]));
extraConfig = ''
memory_limit=8G
xdebug.mode=debug
apc.enable_cli=1
apc.enabled=1
'';
};
in
[
php83
php83.packages.composer
php83.extensions.redis
php83.extensions.xsl
php83.extensions.mbstring
php83.extensions.apcu
git
];
}