-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
40 lines (34 loc) · 947 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
35
36
37
38
39
40
let
rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
nixpkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
rust_channel = nixpkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
in
with nixpkgs;
pkgs.mkShell {
nativeBuildInputs = [pkg-config] ++ (with pkgs; [
openssl
libgit2
sqlite
protobuf
]);
buildInputs = (with pkgs; [
flutter
android-tools
pandoc
rustup
]);
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
pkgs.openssl
pkgs.libgit2
pkgs.sqlite
pkgs.protobuf
];
RUST_SRC_PATH = "${rust_channel}/lib/rustlib/src/rust/library";
LINK_MANPAGES_PANDOC_FILTER = import ./nixos-search/flake-info/src/data/link-manpages.nix { inherit pkgs; };
FLUTTER_ROOT = "${pkgs.flutter}";
LC_CTYPE="en_US.UTF-8";
LC_ALL="en_US.UTF-8";
shellHook = ''
export PATH="$PATH:${rust_channel}/bin"
'';
}