-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
28 lines (25 loc) · 810 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
{
description = "Nix setup for Symfony projects";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
nix2container.url = "github:nlewo/nix2container";
};
outputs = { self, nixpkgs, nix2container, flake-utils }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
nix2containerPkgs = nix2container.packages.${system};
phpPkgs = (import ./nix/php.nix { inherit pkgs; });
in {
packages = (import ./nix/container.nix {
inherit pkgs nix2containerPkgs;
inherit (phpPkgs) phpPkgs;
});
devShells.default = (import ./nix/devshell {
inherit pkgs;
inherit (phpPkgs) phpPkgs;
inherit (pkgs) lib;
});
}
);
}