-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevenv.nix
35 lines (28 loc) · 860 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
{ pkgs, lib, config, inputs, ... }:
{
# https://devenv.sh/basics/
env.GREET = "devenv";
# https://devenv.sh/packages/
packages = [
pkgs.git
pkgs.ninja
pkgs.cmake
pkgs.llvmPackages_17.clang
pkgs.llvmPackages_17.llvm
pkgs.llvmPackages_17.libllvm
pkgs.llvmPackages_17.libllvm.dev
pkgs.llvmPackages_17.mlir
pkgs.llvmPackages_17.stdenv
pkgs.libffi
pkgs.libxml2
];
# https://devenv.sh/languages/
languages.rust.enable = true;
env.LLVM_CONFIG_PATH = "${pkgs.llvmPackages_17.llvm}/bin/llvm-config";
env.LLVM_SYS_170_PREFIX = "${pkgs.llvmPackages_17.libllvm.dev}";
enterShell = ''
export LLVM_SYS_170_PREFIX="${pkgs.llvmPackages_17.libllvm.dev}"
export LLVM_CONFIG_PATH="${pkgs.llvmPackages_17.llvm}/bin/llvm-config"
'';
# See full reference at https://devenv.sh/reference/options/
}