-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
101 lines (82 loc) · 2.91 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
inputs = {
devenv.url = "github:cachix/devenv";
# cargo2nix = {
# url = "github:cargo2nix/cargo2nix/release-0.11.0";
# inputs = { nixpkgs.follows = "nixpkgs"; };
# };
fenix = {
url = "github:nix-community/fenix";
inputs = { nixpkgs.follows = "nixpkgs"; };
};
solc = {
url = "github:hellwolf/solc.nix";
inputs = {
flake-utils.follows = "flake-utils";
nixpkgs.follows = "nixpkgs";
};
};
flake-utils = { url = "github:numtide/flake-utils"; };
};
nixConfig = {
extra-trusted-public-keys =
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
extra-substituters = "https://devenv.cachix.org";
};
outputs = { self, nixpkgs, flake-utils, devenv, fenix, solc, ... }@inputs:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
# Overlays
pkgBundles =
(import ./pkg_bundles.nix { inherit nixpkgs fenix solc system; });
in with pkgBundles; {
devShells = {
default = devenv.lib.mkShell {
inherit pkgs inputs;
modules = [{
# https://devenv.sh/reference/options/
packages = [ pkgs.hello ];
enterShell = ''
hello
'';
}];
};
libxmtp =
(import ./envs/libxmtp.nix { inherit withRust system fenix; });
didethresolver = (import ./envs/didethresolver.nix {
inherit withRust system fenix;
});
xps = (import ./envs/xps.nix { inherit withRust system fenix; });
solidityDev = (import ./envs/solidityDev.nix {
inherit withNodejs14 fenix solc system;
});
luaDev = (import ./envs/lua_dev.nix { inherit pkgs; });
rustStable = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [{
languages.rust = {
enable = true;
channel = "stable";
};
packages = [ ];
enterShell = ''
General Rust Dev Environment with latest stable rust in flake.
'';
}];
};
#solidityAndRust = (import ./envs/solidityAndRustDev.nix {
# inherit withGo1_20 inputs devenv fenix system;
#});
xchat = (import ./envs/xchat.nix { inherit withRust system fenix; });
jsonrpsee =
(import ./envs/jsonrpsee.nix { inherit withRust system fenix; });
walletconnect-sign =
(import ./envs/walletconnect-sign.nix { inherit pkgs system; });
xmtpd = (import ./envs/xmtpd.nix { inherit pkgs system; });
xmtp-node-go =
(import ./envs/xmtp-node-go.nix { inherit pkgs system; });
xmtp-proto = (import ./envs/xmtp-proto.nix { inherit pkgs system; });
};
});
}