1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-29 09:58:32 +02:00

fish: Fix babelization of hm-session-vars

Wrap babelfish version of hm-session-vars.sh into a function to avoid a
syntax error due to the use of `return` in the script.
This commit is contained in:
Pierre Baillet 2023-12-16 10:19:57 +01:00 committed by GitHub
parent abdc82d930
commit 5b3398668b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -221,9 +221,11 @@ let
translatedSessionVariables =
pkgs.runCommandLocal "hm-session-vars.fish" { } ''
(echo "function setup_hm_session_vars;"
${pkgs.buildPackages.babelfish}/bin/babelfish \
<${config.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh \
>$out
<${config.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh
echo "end"
echo "setup_hm_session_vars") > $out
'';
in {