forked from hawkw/mycelium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
31 lines (30 loc) · 833 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
scope@{ pkgs ? import <nixpkgs> { } }:
pkgs.buildEnv {
name = "mycelium-kernel-env";
paths = with pkgs;
[
git
bash
binutils
stdenv
bashInteractive
cacert
gcc
cmake
rustup
pkg-config
openssl
(glibcLocales.override { locales = [ "en_US.UTF-8" ]; })
] ++ lib.optional stdenv.isDarwin [ Security libiconv ];
passthru = with pkgs; {
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";
};
}