Repository navigation
Expand file tree
/
Copy pathdevenv.nix
More file actions
79 lines (68 loc) · 1.56 KB
/
Copy pathdevenv.nix
File metadata and controls
79 lines (68 loc) · 1.56 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
75
76
77
78
79
{ pkgs, lib, ... }: {
name = "site";
packages = with pkgs; [
gitFull
pipenv
# developer tooling
doppler
# see https://devenv.sh/languages/python/#uv
# uv
# required for social cards in mkdocs-material / CairoSVG
cairo
pango
gdk-pixbuf
librsvg
fontconfig
freetype
libffi
libjpeg
zlib
pngquant
];
# Ensure dynamic linker can find shared libs for Python ctypes consumers like CairoSVG
env.LD_LIBRARY_PATH = lib.makeLibraryPath [
# Required by mkdocs-material and/or zensical for social cards
pkgs.cairo
pkgs.pango
pkgs.gdk-pixbuf
pkgs.librsvg
pkgs.fontconfig
pkgs.freetype
pkgs.zlib
# Required by uv cli: https://nixos.org/manual/nixpkgs/unstable/#sec-uv
pkgs.openssl
pkgs.curl
];
# Disable python downloads for uv cli to avoid incompatibility related issues
env.UV_PYTHON_DOWNLOADS = "never";
# Optional, but silences CI warning and ensures predictable locale
env.LANG = "en_US.UTF-8";
languages = {
javascript = {
enable = true;
package = pkgs.nodejs_24;
npm = {
enable = true;
install.enable = true;
};
};
python = {
enable = true;
package = pkgs.python314;
venv.enable = true;
# see https://devenv.sh/languages/python/#uv
uv = {
enable = true;
sync.enable = true;
};
};
};
#enterShell = ''
# pipenv install
# npm install
#'';
tasks = {
"site:build".exec = "pipenv run build";
"site:deploy".exec = "npm run deploy";
};
}