-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshell.nix
More file actions
51 lines (49 loc) · 1.04 KB
/
Copy pathshell.nix
File metadata and controls
51 lines (49 loc) · 1.04 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
{ pkgs ? import <nixpkgs> {} }:
let
fontPackages = with pkgs; [
fira-code
jetbrains-mono
dejavu_fonts
noto-fonts
noto-fonts-cjk-sans
noto-fonts-color-emoji
];
fontDataDirs = builtins.concatStringsSep ":" (map (p: "${p}/share") fontPackages);
in
pkgs.mkShell {
packages = with pkgs; [
rustc
cargo
pkg-config
wayland
libxkbcommon
vulkan-loader
mesa
fontconfig
freetype
harfbuzz
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libXrandr
xorg.libXinerama
xorg.libxcb
] ++ fontPackages;
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
pkgs.wayland
pkgs.libxkbcommon
pkgs.vulkan-loader
pkgs.mesa
pkgs.fontconfig
pkgs.freetype
pkgs.harfbuzz
pkgs.xorg.libX11
pkgs.xorg.libXcursor
pkgs.xorg.libXi
pkgs.xorg.libXrandr
pkgs.xorg.libXinerama
pkgs.xorg.libxcb
];
FONTCONFIG_FILE = "${pkgs.fontconfig.out}/etc/fonts/fonts.conf";
XDG_DATA_DIRS = "${fontDataDirs}:${pkgs.shared-mime-info}/share:${pkgs.hicolor-icon-theme}/share";
}