forked from snowflakedb/drivers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
35 lines (32 loc) · 685 Bytes
/
Copy pathshell.nix
File metadata and controls
35 lines (32 loc) · 685 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
27
28
29
30
31
32
33
34
35
{ pkgs ? import <nixpkgs> {
overlays = [
(import (fetchTarball {
url = "https://github.com/oxalica/rust-overlay/archive/master.tar.gz";
}))
];
}
}:
let
rustToolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
in
pkgs.mkShell {
nativeBuildInputs = [
rustToolchain
pkgs.pkg-config
pkgs.cmake
pkgs.protobuf_32
pkgs.python313
pkgs.uv
];
buildInputs = [
pkgs.openssl
pkgs.unixodbc
pkgs.zlib
];
shellHook = ''
if [ ! -d "python/.venv" ] || [ ! -f "python/.venv/bin/activate" ]; then
uv venv "python/.venv" --python python3.13
fi
source "python/.venv/bin/activate"
'';
}