-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
34 lines (29 loc) · 807 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
phps.url = "github:fossar/nix-phps";
devenv.url = "github:cachix/devenv";
systems.url = "github:nix-systems/default";
};
outputs = inputs @ { self, flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs; } {
systems = import inputs.systems;
imports = [
inputs.devenv.flakeModule
];
perSystem = { config, self', inputs', pkgs, system, lib, ... }: {
_module.args.pkgs = import self.inputs.nixpkgs {
inherit system;
overlays = [
inputs.phps.overlays.default
];
};
devenv.shells.default = {
name = "php-dev-env";
packages = [
pkgs.php82
pkgs.php82.packages.composer
];
};
};
};
}