-
Hi, I'm attempting to use crane to build a bevy app. Unfortunately, it doesn't work as is (see https://github.com/bevyengine/bevy/blob/4bf647ff3b0ca7c8ca47496db9cfe03702328473/docs/linux_dependencies.md#nix) and requires a few extra libraries to be specified. The following wrapper works: runnable = pkgs.writeShellApplication {
name = "runnable";
text = "${default}/bin/repl-gui";
runtimeEnv.LD_LIBRARY_PATH =
with pkgs;
lib.makeLibraryPath [
libxkbcommon
vulkan-loader
];
}; I want to be able to directly patch the binary in order to avoid needing a wrapper script. Ideally adding this would work: fixupPhase = ''
patchelf --add-rpath ${
with pkgs; lib.makeLibraryPath [
libxkbcommon
vulkan-loader
]
} $out/bin/repl-gui
''; At the moment this gets run for the deps derivation though which is definitely not what we want:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @expenses ! I just added a FAQ entry about this in #722. Please take a look at the following and let me know if it does not answer your question! |
Beta Was this translation helpful? Give feedback.
Hi @expenses ! I just added a FAQ entry about this in #722. Please take a look at the following and let me know if it does not answer your question!
https://github.com/ipetkov/crane/blob/c052ed5e849b75d15875b58ae326df45f07ee7a4/docs/faq/control-when-hooks-run.md