-
Notifications
You must be signed in to change notification settings - Fork 1
/
shell.nix
35 lines (33 loc) · 890 Bytes
/
shell.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
{ pkgs ? (
let
nixpkgs = import <nixpkgs>;
pkgs_ = (nixpkgs {});
rustOverlay = (pkgs_.fetchFromGitHub {
owner = "mozilla";
repo = "nixpkgs-mozilla";
rev = "e2a920faec5a9ebd6ff34abf072aacb4e0ed6f70";
sha256 = "1lq7zg388y4wrbl165wraji9dmlb8rkjaiam9bq28n3ynsp4b6fz";
});
in (nixpkgs {
overlays = [
(import (builtins.toPath "${rustOverlay}/rust-overlay.nix"))
(self: super: {
rust = {
rustc = super.rustChannels.stable.rust;
cargo = super.rustChannels.stable.cargo;
};
rustPlatform = super.recurseIntoAttrs (super.makeRustPlatform {
rustc = super.rustChannels.stable.rust;
cargo = super.rustChannels.stable.cargo;
});
})
];
}))
}:
with pkgs;
stdenv.mkDerivation {
name = "ngWallet-env";
buildInputs = [
rustc cargo openssl pkgconfig
];
}