Eze Prieto
PHP 8.0 build "error: attribute 'json' missing"
My project ID c0821839-fe34-4bbb-8872-93446a76aec3, Its a CodeIgniter app with uuid is using PHP 8.1, railway build with 8.0 and its showing this error:
context: cb02218c96c8c58a2d28297cc916216d
╔═══════════════════════════════ Nixpacks v1.5.1 ══════════════════════════════╗
║ setup │ (php80.withExtensions (pe: pe.enabled ++ [pe.all.json ║
║ │ pe.all.mbstring pe.all.intl])), perl, nginx, libmysqlclient, ║
║ │ php80Packages.composer, php80Extensions.json, ║
║ │ php80Extensions.mbstring, php80Extensions.intl ║
║──────────────────────────────────────────────────────────────────────────────║
║ install │ mkdir -p /var/log/nginx && mkdir -p /var/cache/nginx ║
║ │ composer install --ignore-platform-reqs ║
║──────────────────────────────────────────────────────────────────────────────║
║ start │ php-fpm -y /assets/php-fpm.conf & nginx -c /app/nginx.conf ║
╚══════════════════════════════════════════════════════════════════════════════╝
...
#8 [4/9] RUN nix-env -if .nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix && nix-collect-garbage -d
#8 22.63 installing '293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847-env'
#8 23.05 error: attribute 'json' missing
#8 23.05
#8 23.05 at /app/.nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix:6:88:
#8 23.05
#8 23.05 5| let
#8 23.05 6| APPEND_LIBRARY_PATH = "${lib.makeLibraryPath [ libmysqlclient php80Extensions.intl php80Extensions.json php80Extensions.mbstring ] }";
#8 23.05 | ^
#8 23.05 7| myLibraries = writeText "libraries" ''
#8 23.05 (use '--show-trace' to show detailed location information)
26 replies