-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
61 lines (55 loc) · 1.53 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
{
nixConfig = {
extra-substituters = ["https://tezos.nix-cache.workers.dev"];
extra-trusted-public-keys = ["tezos-nix-cache.marigold.dev-1:4nS7FPPQPKJIaNQcbwzN6m7kylv16UCWWgjeZZr2wXA="];
};
inputs = {
nixpkgs.follows = "tezos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
nix-filter.url = "github:numtide/nix-filter";
rust-overlay.url = "github:oxalica/rust-overlay";
tezos.url = "github:marigold-dev/tezos-nix/d4hines/smart-rollup-libs";
};
outputs = {
self,
nixpkgs,
flake-utils,
nix-filter,
rust-overlay,
tezos,
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
overlays = [rust-overlay.overlays.default tezos.overlays.trunk];
};
outbox-daemon = import ./nix/outbox-daemon.nix {
inherit pkgs;
nix-filter = nix-filter.lib;
};
in {
packages = {inherit outbox-daemon;};
devShell = pkgs.mkShell {
inputsFrom = [outbox-daemon];
shellHook = ''
export CC=$(which clang)
'';
packages = with pkgs; [
alejandra
rustfmt
rust-analyzer
wabt
clang
tezos.packages.${system}.trunk-octez-smart-rollup-wasm-debugger
cargo-make
# MDX dependencies
ocaml
dune_3
ocamlPackages.mdx
(rust-bin.stable."1.66.0".default.override {
targets = ["wasm32-unknown-unknown"];
})
];
};
});
}