-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
74 lines (72 loc) · 2.02 KB
/
Copy pathflake.nix
File metadata and controls
74 lines (72 loc) · 2.02 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
description = "Reproducible environment for Data Format Lab";
inputs = {
diagnostic-triage.url = "github:Anionix/diagnostic-triage/d036a33bfc5a49c05f54200df9be8f55e2987cd6";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = { diagnostic-triage, nixpkgs, rust-overlay, ... }:
let
systems = [ "aarch64-darwin" "x86_64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs systems;
in {
devShells = forAllSystems (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ rust-overlay.overlays.default ];
};
rustToolchain = pkgs.rust-bin.nightly."2026-07-15".default.override {
extensions = [ "rust-src" ];
};
in {
default = pkgs.mkShell {
packages = with pkgs; [
python312
uv
ruff
pyright
ty
gh
rustToolchain
cargo-fuzz
duckdb
cmake
ninja
clang
protobuf
flatbuffers
pkg-config
zstd
bison
double-conversion
flex
gflags
glog
gtest
icu
folly
abseil-cpp
fmt
libevent
libsodium
lz4
openssl
simdjson
snappy
xz
xxhash
zlib
diagnostic-triage.packages.${system}.diagnostic-triage
];
env = {
PYTHONNOUSERSITE = "1";
UV_PYTHON = "${pkgs.python312}/bin/python3.12";
UV_NO_EDITABLE = "1";
} // pkgs.lib.optionalAttrs pkgs.stdenv.isLinux {
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc.lib ];
};
};
});
};
}