Manage Cypress through the frontend npm lockfile instead of the Nix shell. Approve its install script and align the Oxlint package pair so npm can resolve dependencies without overrides.
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
self,
|
|
nixpkgs,
|
|
utils,
|
|
}:
|
|
utils.lib.eachDefaultSystem (
|
|
system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
php = pkgs.php.buildEnv {
|
|
extraConfig = ''
|
|
memory_limit = "1G";
|
|
upload_max_filesize = "10M";
|
|
post_max_size = "25M";
|
|
'';
|
|
};
|
|
in
|
|
{
|
|
formatter = pkgs.nixfmt-tree;
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
bash
|
|
onefetch
|
|
just
|
|
php
|
|
phpPackages.composer
|
|
phpPackages.php-codesniffer
|
|
vscode-langservers-extracted
|
|
nodejs
|
|
nixfmt
|
|
nixfmt-tree
|
|
yaml-language-server
|
|
typescript
|
|
postgresql
|
|
mailpit
|
|
process-compose
|
|
mkcert
|
|
caddy
|
|
];
|
|
|
|
shellHook = builtins.readFile ./nix/shell-hook.sh;
|
|
};
|
|
}
|
|
);
|
|
}
|