forked from revoltchat/backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
40 lines (32 loc) · 812 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
38
39
40
let
# Pinned nixpkgs, deterministic. Last updated: 28-07-2024.
pkgs = import (fetchTarball("https://github.com/NixOS/nixpkgs/archive/9b34ca580417e1ebc56c4df57d8b387dad686665.tar.gz")) {};
# Rolling updates, not deterministic.
# pkgs = import (fetchTarball("channel:nixpkgs-unstable")) {};
in pkgs.mkShell {
name = "revoltEnv";
# LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
# pkgs.gcc-unwrapped
# pkgs.zlib
# pkgs.glib
# pkgs.libGL
# ];
buildInputs = [
# Tools
pkgs.git
# Database
# pkgs.mongodb
# Cargo
pkgs.cargo
pkgs.cargo-nextest
# Rust
pkgs.rustc
pkgs.clippy
pkgs.rustfmt
pkgs.pkg-config
pkgs.openssl.dev
# mdbook
pkgs.mdbook
];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
}