Skip to content

Commit

Permalink
Create flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdorn authored Mar 21, 2024
1 parent 8f6d2ad commit 4838191
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
inputs =
{
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, ... }@inputs:
inputs.flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
(php83.buildEnv {
extraConfig = ''xdebug.mode=coverage'';

extensions = { enabled, all }: enabled ++ (with all; [
xdebug
]);
})
php83Packages.composer
];
};
});
}

0 comments on commit 4838191

Please sign in to comment.