diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2022-11-21 11:01:13 +0100 |
---|---|---|
committer | Rick van Schijndel <Mindavi@users.noreply.github.com> | 2022-12-02 19:46:48 +0100 |
commit | 0114278a9a3a3bb1b026c4edbe503034d7375e07 (patch) | |
tree | a32df7b9221261bb345258a065b2857f43f8dbc5 /pkgs | |
parent | fad052f056576d04a8eb7a6b374584a740e10706 (diff) |
zsh: fix modules when cross-compiling
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/shells/zsh/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/shells/zsh/default.nix b/pkgs/shells/zsh/default.nix index 7e177a1744cdf..782c2fb2bea3b 100644 --- a/pkgs/shells/zsh/default.nix +++ b/pkgs/shells/zsh/default.nix @@ -44,6 +44,16 @@ stdenv.mkDerivation { "--enable-pcre" "--enable-zprofile=${placeholder "out"}/etc/zprofile" "--disable-site-fndir" + ] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform && !stdenv.hostPlatform.isStatic) [ + # Also see: https://github.com/buildroot/buildroot/commit/2f32e668aa880c2d4a2cce6c789b7ca7ed6221ba + "zsh_cv_shared_environ=yes" + "zsh_cv_shared_tgetent=yes" + "zsh_cv_shared_tigetstr=yes" + "zsh_cv_sys_dynamic_clash_ok=yes" + "zsh_cv_sys_dynamic_rtld_global=yes" + "zsh_cv_sys_dynamic_execsyms=yes" + "zsh_cv_sys_dynamic_strip_exe=yes" + "zsh_cv_sys_dynamic_strip_lib=yes" ]; # the zsh/zpty module is not available on hydra |