summaryrefslogtreecommitdiff
path: root/2024/PHP/shell.nix
diff options
context:
space:
mode:
authorDJ O'Leary <dijitol@proton.me>2025-03-06 02:40:30 +0100
committerDJ O'Leary <dijitol@proton.me>2025-03-06 02:40:30 +0100
commitb0a060330a6ed3c6c4c1d8c39dc702d8654672df (patch)
treef969f1d9232891a9de305b5f8207178abe08ff10 /2024/PHP/shell.nix
parent0db069e6f6992a544f9dda7657cb6367113a8fcf (diff)
feat: Replace PHP shell with flake
Diffstat (limited to '2024/PHP/shell.nix')
-rw-r--r--2024/PHP/shell.nix31
1 files changed, 0 insertions, 31 deletions
diff --git a/2024/PHP/shell.nix b/2024/PHP/shell.nix
deleted file mode 100644
index 8b25fa1..0000000
--- a/2024/PHP/shell.nix
+++ /dev/null
@@ -1,31 +0,0 @@
-{ }:
-
-let
- config = {
- allowUnfree = true;
- };
- pkgs = import <nixpkgs> { inherit config; };
-
- phpVersion = "php84";
-
- phpPackage = pkgs.lib.attrByPath [ phpVersion ] null pkgs;
- phpPackages = pkgs.lib.attrByPath [ "${phpVersion}Packages" ] null pkgs;
- phpExtensions = pkgs.lib.attrByPath [ "${phpVersion}Extensions" ] null pkgs;
-in
-pkgs.mkShell {
- # build tools
- nativeBuildInputs = with pkgs; [
- phpPackage
- nodejs_18
- ];
- # dependencies
- buildInputs = with pkgs; [
- intelephense
- phpunit
- phpPackages.php-cs-fixer
- phpPackages.phpstan
- phpExtensions.xdebug
-
- gh # GitHub CLI
- ];
-}