Last active
January 9, 2022 12:41
-
-
Save zackad/32314cb1e6320ddc08a435c748398a1c to your computer and use it in GitHub Desktop.
Nix setup for webdev with symfony
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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