Merge pull request #288138 from ambroisie/tandoor-recipes-manage-script

nixos/tandoor-recipes: improve manage script
This commit is contained in:
Felix Bühler 2024-02-15 20:26:03 +01:00 committed by GitHub
commit 60abd7c1f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,14 +17,11 @@ let
lib.mapAttrs (_: toString) cfg.extraConfig
);
manage =
let
setupEnv = lib.concatStringsSep "\n" (mapAttrsToList (name: val: "export ${name}=\"${val}\"") env);
in
pkgs.writeShellScript "manage" ''
${setupEnv}
exec ${pkg}/bin/tandoor-recipes "$@"
'';
manage = pkgs.writeShellScript "manage" ''
set -o allexport # Export the following env vars
${lib.toShellVars env}
exec ${pkg}/bin/tandoor-recipes "$@"
'';
in
{
meta.maintainers = with maintainers; [ ambroisie ];