-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
default.nix
33 lines (32 loc) · 901 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
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
zlib
(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";
LD_LIBRARY_PATH = "${lib.makeLibraryPath [ zlib ]}";
};
}