-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
29 lines (26 loc) · 836 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
let
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
nixpkgs = import <nixpkgs> {
overlays = [ moz_overlay ];
# crossSystem = { config = "aarch64-unknown-linux-gnu"; };
};
in
with nixpkgs;
mkShell {
nativeBuildInputs = with pkgsBuildHost; [
latest.rustChannels.stable.rust
pkgconfig
stdenv.cc
yaml-language-server
];
buildInputs = with pkgsHostTarget; [
cacert
openssl
];
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER = "${stdenv.cc.targetPrefix}cc";
RUST_SRC_PATH = "${pkgsBuildHost.latest.rustChannels.stable.rust-src}/lib/rustlib/src/rust/library";
RUST_LOG = "info";
KAENGURU_DATA_PATH = "data/";
KAENGURU_CHATS_FILE = "chats.json";
KAENGURU_TOKEN_FIlE = "data/token";
}