File tree Expand file tree Collapse file tree 2 files changed +20
-34
lines changed Expand file tree Collapse file tree 2 files changed +20
-34
lines changed Original file line number Diff line number Diff line change 5
5
6
6
inputs = {
7
7
nixpkgs . url = "github:NixOS/nixpkgs/nixpkgs-unstable" ;
8
- flake-utils . url = "github:numtide/flake-utils " ;
8
+ systems . url = "github:nix-systems/default " ;
9
9
fenix = {
10
10
url = "github:nix-community/fenix" ;
11
11
inputs . nixpkgs . follows = "nixpkgs" ;
20
20
{
21
21
self ,
22
22
nixpkgs ,
23
- flake-utils ,
23
+ systems ,
24
24
fenix ,
25
25
zombienet ,
26
26
...
27
27
} :
28
- flake-utils . lib . eachDefaultSystem (
29
- system :
30
- let
31
- pkgs = import nixpkgs {
28
+ let
29
+ mkPkgs =
30
+ system :
31
+ import nixpkgs {
32
32
inherit system ;
33
33
overlays = [
34
34
fenix . overlays . default
35
35
zombienet . overlays . default
36
36
] ;
37
37
} ;
38
- in
39
- {
40
- checks = {
38
+ eachSystem = f : nixpkgs . lib . genAttrs ( import systems ) ( system : f system ( mkPkgs system ) ) ;
39
+ in
40
+ {
41
+ checks = eachSystem (
42
+ system : pkgs : {
41
43
buildAll = pkgs . symlinkJoin {
42
44
name = "build-all-packages" ;
43
45
paths = builtins . attrValues self . packages . ${ system } ;
44
46
} ;
45
- } ;
46
- devShells = {
47
+ }
48
+ ) ;
49
+ devShells = eachSystem (
50
+ system : pkgs : {
47
51
default = import ./shell.nix { inherit pkgs ; } ;
48
- } ;
49
- packages = import ./pkgs { inherit pkgs ; } ;
50
- }
51
- )
52
+ }
53
+ ) ;
54
+ packages = eachSystem ( system : pkgs : import ./pkgs { inherit pkgs ; } ) ;
55
+ }
52
56
// {
53
57
overlays = {
54
58
default =
You can’t perform that action at this time.
0 commit comments