forked from tokio-rs/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
37 lines (36 loc) · 962 Bytes
/
default.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
scope@{ pkgs ? import <nixpkgs> { } }:
pkgs.buildEnv {
name = "console-env";
paths = with pkgs;
[
git
bash
direnv
binutils
stdenv
bashInteractive
docker
cacert
gcc
cmake
rustup
pkg-config
openssl
protobuf
docker
(glibcLocales.override { locales = [ "en_US.UTF-8" ]; })
] ++ lib.optional stdenv.isDarwin [ Security libiconv ];
passthru = with pkgs; {
PROTOC = "${protobuf}/bin/protoc";
PROTOC_INCLUDE = "${protobuf}/include";
LOCALE_ARCHIVE = "${glibcLocales}/lib/locale/locale-archive";
LC_ALL = "en_US.UTF-8";
OPENSSL_DIR = "${openssl.dev}";
OPENSSL_LIB_DIR = "${openssl.out}/lib";
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt";
CURL_CA_BUNDLE = "${cacert}/etc/ca-bundle.crt";
CARGO_TERM_COLOR = "always";
RUST_BACKTRACE = "full";
};
}