2025-06-22 21:08:07 +01:00
|
|
|
{
|
2025-06-22 23:52:17 +01:00
|
|
|
inputs = {
|
2025-08-15 17:04:14 +01:00
|
|
|
composer2nix.flake = false;
|
|
|
|
composer2nix.url = "github:svanderburg/composer2nix";
|
|
|
|
|
2025-07-30 01:19:50 +01:00
|
|
|
devshell.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
devshell.url = "github:numtide/devshell";
|
|
|
|
|
2025-06-22 23:52:17 +01:00
|
|
|
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
|
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
|
2025-07-30 01:16:41 +01:00
|
|
|
import-tree.url = "github:vic/import-tree";
|
|
|
|
|
2025-06-22 23:52:17 +01:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2025-06-28 11:59:34 +01:00
|
|
|
|
|
|
|
nixpkgs-php74.url = "github:nixos/nixpkgs/81b77fd3847a";
|
2025-06-22 23:52:17 +01:00
|
|
|
};
|
2025-06-22 21:08:07 +01:00
|
|
|
|
|
|
|
outputs =
|
2025-07-30 01:16:41 +01:00
|
|
|
inputs:
|
|
|
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
2025-06-22 23:52:17 +01:00
|
|
|
systems = [ "x86_64-linux" ];
|
|
|
|
|
2025-06-28 13:01:14 +01:00
|
|
|
_module.args = {
|
2025-08-15 17:04:14 +01:00
|
|
|
commonPhpPackages =
|
|
|
|
pkgs: system:
|
|
|
|
with pkgs;
|
|
|
|
let
|
|
|
|
composer2nix = import inputs.composer2nix { inherit system pkgs; };
|
|
|
|
in
|
|
|
|
[
|
|
|
|
composer2nix
|
2025-08-23 18:27:13 +01:00
|
|
|
paratest
|
2025-08-22 12:03:31 +01:00
|
|
|
pest
|
2025-08-15 17:04:14 +01:00
|
|
|
phpactor
|
2025-08-22 12:03:31 +01:00
|
|
|
phpunit
|
2025-08-15 17:04:14 +01:00
|
|
|
];
|
2025-06-28 13:01:14 +01:00
|
|
|
};
|
|
|
|
|
2025-07-30 01:19:50 +01:00
|
|
|
imports = [
|
|
|
|
inputs.devshell.flakeModule
|
|
|
|
|
|
|
|
(inputs.import-tree ./modules)
|
|
|
|
];
|
2025-06-23 00:14:26 +01:00
|
|
|
|
2025-06-22 23:52:17 +01:00
|
|
|
perSystem =
|
2025-06-23 00:16:29 +01:00
|
|
|
{ pkgs, ... }:
|
2025-06-22 23:52:17 +01:00
|
|
|
{
|
2025-07-30 01:19:50 +01:00
|
|
|
devshells.default = {
|
2025-06-23 00:14:26 +01:00
|
|
|
packages = with pkgs; [ nixd ];
|
2025-06-22 23:52:17 +01:00
|
|
|
};
|
|
|
|
};
|
2025-06-22 21:08:07 +01:00
|
|
|
};
|
|
|
|
}
|