File tree 1 file changed +24
-11
lines changed 1 file changed +24
-11
lines changed Original file line number Diff line number Diff line change 9
9
} ;
10
10
11
11
nixpkgs . url = "github:NixOS/nixpkgs/nixpkgs-unstable" ;
12
-
13
- utils . url = "github:numtide/flake-utils" ;
14
12
} ;
15
13
16
- outputs = { self , flake-compat , nixpkgs , utils } :
17
- # For each supported platform,
18
- utils . lib . eachDefaultSystem ( system :
19
- let
14
+ outputs = inputs @ { flake-parts , ...} :
15
+ inputs . flake-parts . lib . mkFlake { inherit inputs ; } {
16
+ flake = {
17
+ overlays . default = import ./pkgs/phps.nix inputs . nixpkgs ;
18
+ } ;
19
+
20
+ systems = [
21
+ "x86_64-linux"
22
+ "x86_64-darwin"
23
+ "aarch64-linux"
24
+ "aarch64-darwin"
25
+ ] ;
26
+
27
+ perSystem = {
28
+ config ,
29
+ pkgs ,
30
+ system ,
31
+ ...
32
+ } : let
20
33
# Let’s merge the package set from Nixpkgs with our custom PHP versions.
21
- pkgs = import nixpkgs . outPath {
34
+ pkgs = import inputs . nixpkgs {
22
35
config = {
23
36
allowUnfree = true ;
24
37
} ;
25
38
inherit system ;
26
39
overlays = [
27
- self . overlays . default
40
+ inputs . self . overlays . default
28
41
] ;
29
42
} ;
30
43
in rec {
44
+ formatter = pkgs . alejandra ;
45
+
31
46
packages = {
32
47
inherit ( pkgs ) php php56 php70 php71 php72 php73 php74 php80 php81 php82 ;
33
48
} ;
34
49
35
50
checks = import ./checks.nix {
36
51
inherit packages pkgs system ;
37
52
} ;
38
- }
39
- ) // {
40
- overlays . default = import ./pkgs/phps.nix nixpkgs . outPath ;
53
+ } ;
41
54
} ;
42
55
}
You can’t perform that action at this time.
0 commit comments