-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
26 lines (25 loc) · 779 Bytes
/
shell.nix
File metadata and controls
26 lines (25 loc) · 779 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
{
pkgs ? import <nixpkgs> { },
}:
let
deps = import ./nix/deps.nix { pkgs = pkgs; };
stdenv = pkgs.llvmPackages_13.stdenv;
mkShell = (pkgs.mkShell.override { stdenv = stdenv; });
in
mkShell {
name = "kime-shell";
dontUseCmakeConfigure = true;
dontWrapQtApps = true;
buildInputs = deps.kimeBuildInputs;
nativeBuildInputs = deps.kimeNativeBuildInputs ++ (with pkgs; [
gnome.gedit
llvmPackages_13.lldb
]);
CMAKE_EXPORT_COMPILE_COMMANDS = 1;
LIBCLANG_PATH = "${pkgs.llvmPackages_13.libclang.lib}/lib";
LD_LIBRARY_PATH = "./target/debug:${pkgs.wayland}/lib:${pkgs.libGL}/lib:${pkgs.libxkbcommon}/lib";
G_MESSAGES_DEBUG = "kime";
GTK_IM_MODULE = "kime";
GTK_IM_MODULE_FILE = builtins.toString ./.vscode/immodules.cache;
RUST_BACKTRACE = 1;
}