forked from hashgraph/hedera-sdk-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
39 lines (37 loc) · 1.19 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
# NOTE: this is *ONLY* for developer environment configuration,
# and is used by *one* specific developer (`Skyler Ross <[email protected]>`).
# This file MUST NOT be relyed on existing or having any particular setup.
# This can and will break at random.
# This MAY be completely removed at some arbitrary point in the future.
# This IS NOT required for building the SDK.
{
description = "Hedera SDK (Rust)";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = { self, nixpkgs, utils, rust-overlay, ... }:
utils.lib.eachDefaultSystem
(system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
in
rec {
devShell = pkgs.mkShell
{
buildInputs = with pkgs;
[
(rust-bin.fromRustupToolchainFile ./sdk/rust/rust-toolchain)
cargo-outdated
cargo-edit
cmake
protobuf
];
};
}
);
}