laravel-data/flake.nix
2026-02-23 21:09:02 -03:00

40 lines
739 B
Nix

{
description = "PHP Data Transfer Object";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
php = (
pkgs.php.withExtensions (
{ enabled, all }:
enabled
++ [
all.pcntl
all.xdebug
]
)
);
in
{
devShells.default = pkgs.mkShell {
packages = [
php
php.packages.composer
];
};
}
);
}