summaryrefslogtreecommitdiffstats
path: root/pkgs/development/libraries/SDL2
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2017-08-10 18:22:07 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-12-30 22:04:22 -0500
commit046f091e0d9853a81ce4d484a75cfa1b5fc9347d (patch)
tree4a0094d67c9444330e9b71d4c89d0ce45630e31b /pkgs/development/libraries/SDL2
parenta1cdc2011ed049cf8a7a0f2f7909d401dc8d9457 (diff)
treewide: Don't use envHook anymore
This commits needs a MAJOR audit as I oftentimes just guessed which of `$hostOffset`, `$targetOffset`, or a fixed offset should be used.
Diffstat (limited to 'pkgs/development/libraries/SDL2')
-rw-r--r--pkgs/development/libraries/SDL2/setup-hook.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/pkgs/development/libraries/SDL2/setup-hook.sh b/pkgs/development/libraries/SDL2/setup-hook.sh
index 5a26440f37b3..3acce9d473c5 100644
--- a/pkgs/development/libraries/SDL2/setup-hook.sh
+++ b/pkgs/development/libraries/SDL2/setup-hook.sh
@@ -4,8 +4,4 @@ addSDL2Path () {
fi
}
-if test -n "$crossConfig"; then
- crossEnvHooks+=(addSDL2Path)
-else
- envHooks+=(addSDL2Path)
-fi
+addEnvHooks "$hostOffset" addSDL2Path