-
Notifications
You must be signed in to change notification settings - Fork 2
/
shell.nix
34 lines (32 loc) · 905 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
let pkgs = (
let
nixpkgs = import <nixpkgs>;
pkgs_ = (nixpkgs {});
rustOverlay = (pkgs_.fetchFromGitHub {
owner = "mozilla";
repo = "nixpkgs-mozilla";
rev = "6179dd876578ca2931f864627598ede16ba6cdef";
sha256 = "1lim10a674621zayz90nhwiynlakxry8fyz1x209g9bdm38zy3av";
});
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;
});
})
];
}));
in with pkgs;
stdenv.mkDerivation {
name = "libsecp256k1-env";
buildInputs = [
gcc rustc cargo gdb openssl pkgconfig
];
}