File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 13
13
rev = with self ; if sourceInfo ?dirtyRev then sourceInfo . dirtyRev else sourceInfo . rev ;
14
14
pkgs = import nixpkgs { inherit system ; } ;
15
15
16
+ llvmPackages = pkgs . llvmPackages_19 ;
17
+
16
18
devShellTools = [
17
- pkgs . clang-tools
19
+ llvmPackages . clang-tools
20
+ pkgs . git
18
21
] ;
19
22
20
23
tools = [
34
37
pkgs . capstone
35
38
pkgs . dbus
36
39
pkgs . bzip2
37
- ] ++ pkgs . lib . optionals pkgs . stdenv . isDarwin [
38
- pkgs . darwin . apple_sdk . frameworks . Cocoa
39
40
] ++ pkgs . lib . optionals ( ! pkgs . stdenv . isDarwin ) [
40
41
pkgs . qt6 . qtbase # TODO: Qt should work on Darwin too
41
42
pkgs . qt6 . wrapQtAppsHook
42
43
] ;
43
44
stdenv = if pkgs . stdenv . isLinux then pkgs . stdenv
44
- else if pkgs . stdenv . isDarwin then pkgs . clang18Stdenv
45
+ else if pkgs . stdenv . isDarwin then llvmPackages . stdenv
45
46
else throw "Unsupported platform" ;
46
47
in
47
48
{
91
92
shellHook = if stdenv . isLinux then ''
92
93
export LD_LIBRARY_PATH="${ pkgs . vulkan-loader } /lib";
93
94
'' else if stdenv . isDarwin then ''
95
+ # clangd needs to come from clang-tools. Because Darwin uses clang stdenv, this is the only way to ensure we use the right clangd.
96
+ export PATH="${ llvmPackages . clang-tools } /bin:$PATH";
94
97
export DYLD_FALLBACK_LIBRARY_PATH="${ pkgs . darwin . moltenvk } /lib";
95
98
'' else throw "Unsupported platform" ;
96
99
} ;
You can’t perform that action at this time.
0 commit comments