forked from datasetq/datasetq
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevenv.nix
More file actions
26 lines (20 loc) · 700 Bytes
/
devenv.nix
File metadata and controls
26 lines (20 loc) · 700 Bytes
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
{ pkgs, lib, config, inputs, ... }:
{
env.RUSTC_WRAPPER = "${pkgs.sccache}/bin/sccache";
# https://devenv.sh/packages/
packages = [ pkgs.git pkgs.libyaml pkgs.openssl pkgs.zlib pkgs.sccache pkgs.wasm-pack pkgs.coz pkgs.dpkg pkgs.clang];
# https://devenv.sh/languages/
languages.rust = {
enable = true;
channel = "stable";
mold.enable = false;
targets = [ "x86_64-unknown-linux-musl" "wasm32-unknown-unknown"];
components = [ "rustc" "cargo" "clippy" "rustfmt" "rust-analyzer" "llvm-tools-preview"];
};
languages.ruby.enable = true;
languages.zig.enable = true;
# https://devenv.sh/pre-commit-hooks/
git-hooks.hooks = {
rustfmt.enable = true;
};
}