Skip to content

Commit c5f6185

Browse files
committed
add flake nix
1 parent 8384d1d commit c5f6185

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

‎flake.nix‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
4+
phps.url = "github:fossar/nix-phps";
5+
devenv.url = "github:cachix/devenv";
6+
systems.url = "github:nix-systems/default";
7+
};
8+
9+
outputs = inputs @ { self, flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs; } {
10+
systems = import inputs.systems;
11+
12+
imports = [
13+
inputs.devenv.flakeModule
14+
];
15+
16+
perSystem = { config, self', inputs', pkgs, system, lib, ... }: {
17+
_module.args.pkgs = import self.inputs.nixpkgs {
18+
inherit system;
19+
overlays = [
20+
inputs.phps.overlays.default
21+
];
22+
};
23+
24+
devenv.shells.default = {
25+
name = "php-dev-env";
26+
27+
packages = [
28+
pkgs.php82
29+
pkgs.php82.packages.composer
30+
];
31+
};
32+
};
33+
};
34+
}

0 commit comments

Comments
 (0)