dev-shells/flake.nix

54 lines
1.2 KiB
Nix

{
inputs = {
composer2nix.flake = false;
composer2nix.url = "github:svanderburg/composer2nix";
devshell.inputs.nixpkgs.follows = "nixpkgs";
devshell.url = "github:numtide/devshell";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts";
import-tree.url = "github:vic/import-tree";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-php74.url = "github:nixos/nixpkgs/81b77fd3847a";
};
outputs =
inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ];
_module.args = {
commonPhpPackages =
pkgs: system:
with pkgs;
let
composer2nix = import inputs.composer2nix { inherit system pkgs; };
in
[
composer2nix
paratest
pest
phpactor
phpunit
];
};
imports = [
inputs.devshell.flakeModule
(inputs.import-tree ./modules)
];
perSystem =
{ pkgs, ... }:
{
devshells.default = {
packages = with pkgs; [ nixd ];
};
};
};
}