File tree Expand file tree Collapse file tree 2 files changed +31
-39
lines changed Expand file tree Collapse file tree 2 files changed +31
-39
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- inputs . nixpkgs . url = "github:NixOS/nixpkgs/nixpkgs-unstable" ;
3
- inputs . systems . url = "github:nix-systems/default" ;
2
+ inputs . nixpkgs . url = "github:NixOS/nixpkgs/nixos-24.11" ;
4
3
inputs . devshell . url = "github:numtide/devshell" ;
5
4
inputs . devshell . inputs . nixpkgs . follows = "nixpkgs" ;
6
- inputs . devshell . inputs . systems . follows = "systems" ;
7
5
8
- outputs = inputs @{ ... } :
6
+ outputs =
7
+ inputs @{ ... } :
9
8
let
10
- eachSystem = inputs . nixpkgs . lib . genAttrs ( import inputs . systems ) ;
9
+ systems = [
10
+ "aarch64-darwin"
11
+ "aarch64-linux"
12
+ "x86_64-darwin"
13
+ "x86_64-linux"
14
+ ] ;
15
+ eachSystem =
16
+ f :
17
+ inputs . nixpkgs . lib . genAttrs systems (
18
+ system :
19
+ f rec {
20
+ inherit system ;
21
+ pkgs = inputs . nixpkgs . legacyPackages . ${ system } ;
22
+ devshell = import inputs . devshell { nixpkgs = pkgs ; } ;
23
+ }
24
+ ) ;
11
25
in
12
26
{
13
- devShells = eachSystem ( system :
27
+ devShells = eachSystem (
28
+ { pkgs , devshell , ... } :
14
29
let
15
- pkgs = inputs . nixpkgs . legacyPackages . ${ system } ;
16
- devshell = import inputs . devshell {
17
- inherit inputs system ;
18
- nixpkgs = pkgs ;
19
- } ;
20
30
nodeModules = pkgs . mkYarnModules {
21
31
pname = "zigbee2mqtt-networkmap-node-modules" ;
22
32
version = "1.0" ;
33
43
yarn
34
44
] ;
35
45
} ;
36
- } ) ;
46
+ }
47
+ ) ;
37
48
} ;
38
49
}
You can’t perform that action at this time.
0 commit comments