-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevenv.nix
61 lines (50 loc) · 997 Bytes
/
devenv.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{ pkgs, lib, config, inputs, ... }:
let
buildInputs = with pkgs; [
stdenv.cc.cc
tesseract
glib
openssh
];
in
{
# A dotenv file was found, while dotenv integration is currently not enabled.
dotenv.enable = false;
dotenv.disableHint = true;
packages = with pkgs; [
cudaPackages.cuda_nvcc
stdenv.cc.cc
tesseract
];
env = {
LD_LIBRARY_PATH = "${
with pkgs;
lib.makeLibraryPath buildInputs
}:/run/opengl-driver/lib:/run/opengl-driver-32/lib";
};
languages.python = {
enable = true;
uv = {
enable = true;
sync.enable = true;
};
};
scripts = {
hello.package = pkgs.zsh;
hello.exec = "${pkgs.uv}/bin/uv run python hello.py";
runtests.package = pkgs.zsh;
runtests.exec = "${pkgs.uv}/bin/uv run python runtests.py";
};
tasks = {
};
processes = {
};
enterShell = ''
. .devenv/state/venv/bin/activate
runtests
hello
'';
enterTest = ''
nvcc -V
'';
}