-
Notifications
You must be signed in to change notification settings - Fork 6
/
flake.nix
60 lines (56 loc) · 1.62 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
{
description = "A development environment and build system for the mina-block-explorer project";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?ref=931494da4b60fb26719e231d6de4b2c96167a1ce";
rust-overlay.url = "github:oxalica/rust-overlay";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = {
self,
nixpkgs,
rust-overlay,
flake-utils,
flake-compat,
...
}:
flake-utils.lib.eachDefaultSystem (system: let
overlays = [(import rust-overlay)];
pkgs = import nixpkgs {inherit system overlays;};
toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
# used to ensure rustfmt is nightly version to support unstable features
nightlyToolchain =
pkgs.rust-bin.selectLatestNightlyWith (toolchain:
toolchain.minimal.override {extensions = ["rustfmt"];});
in {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs;
[
nightlyToolchain.passthru.availableComponents.rustfmt
alejandra
cacert
cargo-audit
cargo-machete
cargo-nextest
leptosfmt
just
nodejs_22
nodePackages.pnpm
openssl
pkg-config
ruby
rubyPackages.standard
rubyPackages.rspec
rust-analyzer
toolchain
trunk
netcat
]
++ lib.optionals stdenv.isDarwin
[darwin.apple_sdk.frameworks.SystemConfiguration];
shellHook = "";
};
});
}