Add composer2nix to all PHP dev shells
This commit is contained in:
parent
63c58e5c4e
commit
3572510177
8 changed files with 40 additions and 10 deletions
14
flake.nix
14
flake.nix
|
|
@ -1,5 +1,8 @@
|
|||
{
|
||||
inputs = {
|
||||
composer2nix.flake = false;
|
||||
composer2nix.url = "github:svanderburg/composer2nix";
|
||||
|
||||
devshell.inputs.nixpkgs.follows = "nixpkgs";
|
||||
devshell.url = "github:numtide/devshell";
|
||||
|
||||
|
|
@ -19,7 +22,16 @@
|
|||
systems = [ "x86_64-linux" ];
|
||||
|
||||
_module.args = {
|
||||
commonPhpPackages = pkgs: with pkgs; [ phpactor ];
|
||||
commonPhpPackages =
|
||||
pkgs: system:
|
||||
with pkgs;
|
||||
let
|
||||
composer2nix = import inputs.composer2nix { inherit system pkgs; };
|
||||
in
|
||||
[
|
||||
composer2nix
|
||||
phpactor
|
||||
];
|
||||
};
|
||||
|
||||
imports = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue