dev-shells/flake.nix

42 lines
1,022 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-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" ];
perSystem =
{ config, pkgs, ... }:
let
inherit (pkgs) callPackage;
2025-06-22 21:08:07 +01:00
2025-06-22 23:52:17 +01:00
commonPhpPackages = with pkgs; [
phpactor
];
in
{
devShells = {
default = pkgs.mkShell {
packages = with pkgs; [ nixd ];
};
2025-06-22 21:08:07 +01:00
2025-06-22 23:52:17 +01:00
nodejs = callPackage ./modules/nodejs.nix { };
2025-06-22 21:08:07 +01:00
2025-06-22 23:52:17 +01:00
php82 = callPackage ./modules/php82.nix { inherit commonPhpPackages; };
2025-06-22 21:11:19 +01:00
2025-06-22 23:52:17 +01:00
php83 = callPackage ./modules/php83.nix { inherit commonPhpPackages; };
2025-06-22 21:08:07 +01:00
2025-06-22 23:52:17 +01:00
tailwindcss = callPackage ./modules/tailwindcss.nix { };
};
formatter = pkgs.nixfmt-rfc-style;
};
2025-06-22 21:08:07 +01:00
};
}