We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62986a2 commit e6512deCopy full SHA for e6512de
.dgb-n64-root
flake.nix
@@ -100,8 +100,17 @@
100
{
101
buildInputs = devShellTools ++ tools ++ libs;
102
shellHook = ''
103
- mkdir -p ./src/jit/.cargo
104
- ln -s ${cargoConfigFile} ./src/jit/.cargo/config.toml
+ FLAKE_ROOT="$(git rev-parse --show-toplevel)"
+ (
105
+ cd "$FLAKE_ROOT"
106
+ if [ -f .dgb-n64-root ]; then
107
+ echo "Creating cargo config.toml to use vendored dependencies"
108
+ mkdir -p ./src/jit/.cargo
109
+ ln -sf ${cargoConfigFile} ./src/jit/.cargo/config.toml
110
+ else
111
+ echo "Did not find .dgb-n64-root, not creating cargo config.toml"
112
+ fi
113
+ )
114
'' + (if stdenv.isLinux then ''
115
export LD_LIBRARY_PATH="${pkgs.vulkan-loader}/lib";
116
'' else if stdenv.isDarwin then ''
0 commit comments