-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
82 lines (73 loc) · 2.33 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
{
inputs = {
# 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";
};
};
foundry.url = "github:shazow/foundry.nix/monthly"; # Use monthly branch for permanent releases
flake-utils = {
url = "github:numtide/flake-utils";
};
};
outputs =
{ nixpkgs
, flake-utils
, fenix
, foundry
, solc
, ...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgBundles = import ./pkg-bundles {
inherit
nixpkgs
fenix
foundry
system
;
};
in
with pkgBundles;
{
devShells = {
rust-nightly = (callPackage pkgsRust) ./envs/rust-nightly.nix { inherit fenix system; };
rust-stable = (callPackage pkgsRust) ./envs/rust-stable.nix { inherit fenix system; };
libxmtp = (callPackage pkgsRust) ./envs/libxmtp.nix { inherit fenix system; };
xmtp-js = (callPackage pkgs) ./envs/xmtp-js.nix { };
xmtp-node-go = (callPackage pkgs) ./envs/xmtp-node-go.nix { };
xmtp-android = import ./envs/xmtp-android.nix { inherit pkgsAndroid system; };
solidityDev = import ./envs/solidityDev.nix {
inherit
withRust
fenix
solc
system
;
};
luaDev = import ./envs/lua_dev.nix { inherit pkgs; };
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-proto = import ./envs/xmtp-proto.nix { inherit pkgs system; };
wa-sqlite = import ./envs/wa-sqlite.nix { inherit pkgs system; };
diesel-async = import ./envs/diesel-async.nix { inherit withRust system fenix; };
};
}
);
}