Skip to content

Instantly share code, notes, and snippets.

@zackad
Last active January 9, 2022 12:41
Show Gist options
  • Save zackad/32314cb1e6320ddc08a435c748398a1c to your computer and use it in GitHub Desktop.
Save zackad/32314cb1e6320ddc08a435c748398a1c to your computer and use it in GitHub Desktop.
Nix setup for webdev with symfony
with import <nixpkgs> {};
let
myPhp = php81.buildEnv {
extensions = { all, ... }: with all; [
curl
dom
fileinfo
filter
iconv
intl
mbstring
gd
pdo
pdo_sqlite
session
simplexml
sodium
sqlite3
opcache
pcov
zip
zlib
];
extraConfig = "memory_limit=256M\npost_max_size=256M\nupload_max_filesize=256M";
};
in
mkShell {
packages = [
git
nodejs-16_x
php81Extensions.xdebug
php81Packages.composer
# Please set `allowUnfree = true` in `.config/nixpkgs/config.nix`
symfony-cli
yarn
];
buildInputs = [
myPhp
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment