Skip to content

Commit

Permalink
libcosmicAppHook: add hook for dev shells to link required libs
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyinstarlight committed Sep 16, 2024
1 parent 48858dc commit 9907e5b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/libcosmicAppHook/libcosmic-app-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ libcosmicAppLinkerArgsHook() {

preConfigurePhases+=" libcosmicAppVergenHook libcosmicAppLinkerArgsHook"

# Add shell hook for use in dev shells
if [ -n "${IN_NIX_SHELL-}" ] && [ -z "${shellHook-}" ]; then
shellHook="libcosmicAppLinkerArgsHook && export RUSTFLAGS=\$CARGO_TARGET_@cargoLinkerVar@_RUSTFLAGS CARGO_TARGET_@cargoLinkerVar@_RUSTFLAGS="
fi

libcosmicAppWrapperArgsHook() {
if [ -d "${prefix:?}/share" ]; then
libcosmicAppWrapperArgs+=(--suffix XDG_DATA_DIRS : "$prefix/share")
Expand Down

0 comments on commit 9907e5b

Please sign in to comment.