add dev flake

This commit is contained in:
Robin Appelman 2026-07-15 14:27:30 +02:00
commit 34cf715ecd
4 changed files with 99 additions and 0 deletions

36
flake.nix Normal file
View file

@ -0,0 +1,36 @@
{
inputs = {
nixpkgs.url = "nixpkgs/release-26.05";
utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
utils,
}:
utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
};
phpPackages = pkgs.phpPackages;
phpPackage = pkgs.php.buildEnv {
extensions = {
enabled,
all,
}:
enabled
++ (with all; [
xmlwriter
]);
};
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [
phpPackage
phpPackages.composer
(phpPackages.box.override {php82 = phpPackage;})
];
};
});
}