dev-shells/flake.nix

40 lines
899 B
Nix
Raw Normal View History

2025-06-22 21:08:07 +01:00
{
2025-06-22 23:52:17 +01:00
inputs = {
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts";
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-06-22 23:52:17 +01:00
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ];
2025-06-28 13:01:14 +01:00
_module.args = {
commonPhpPackages = pkgs: with pkgs; [ phpactor ];
};
2025-06-23 00:14:26 +01:00
imports = [
./modules/nodejs.nix
2025-06-28 11:59:34 +01:00
./modules/php74.nix
2025-06-28 11:49:50 +01:00
./modules/php81.nix
2025-06-23 00:14:26 +01:00
./modules/php82.nix
./modules/php83.nix
./modules/tailwindcss.nix
];
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-06-23 00:14:26 +01:00
devShells.default = pkgs.mkShell {
packages = with pkgs; [ nixd ];
2025-06-22 23:52:17 +01:00
};
formatter = pkgs.nixfmt-rfc-style;
};
2025-06-22 21:08:07 +01:00
};
}