File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ plugins/applications/target
33result
44/result
55/.direnv
6+ .envrc
Original file line number Diff line number Diff line change 1818 libXrandr ,
1919 libXi ,
2020 libXcursor ,
21+ mesa ,
22+ system ,
2123 ...
2224} : let
2325 cargoToml = builtins . fromTOML ( builtins . readFile ../oxirun/Cargo.toml ) ;
2830 pkg-config
2931 libclang
3032 ] ;
33+ driverIcdPath = "${ mesa } /share/vulkan/icd.d" ;
34+ icdArch =
35+ if system == "x86_64-linux"
36+ then "x86_64"
37+ else if system == "aarch64-linux"
38+ then "aarch64"
39+ else "x86_64" ;
3140in
3241 rustPlatform . buildRustPackage rec {
3342 pname = cargoToml . package . name ;
6776 copyLibs = true ;
6877 LD_LIBRARY_PATH = libPath ;
6978 LIBCLANG_PATH = "${ libclang . lib } /lib" ;
79+ VK_ICD_FILENAMES = "${ driverIcdPath } /radeon_icd.${ icdArch } .json:${ driverIcdPath } /intel_icd.${ icdArch } .json" ;
7080
7181 postFixup = let
7282 libPath = lib . makeLibraryPath [
8090 libXi
8191 libXcursor
8292 libclang
93+ mesa
8394 ] ;
8495 in ''
8596 patchelf --set-rpath "${ libPath } " "$out/bin/oxirun"
You can’t perform that action at this time.
0 commit comments