mirror of
https://github.com/nix-community/nix-doom-emacs
synced 2025-08-07 12:47:32 -05:00
output formating: use nix variables for reusability in other stages
This commit is contained in:
18
default.nix
18
default.nix
@ -91,6 +91,12 @@ let
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fmt = {
|
||||||
|
reset=''\\033[0m'';
|
||||||
|
bold=''\\033[1m'';
|
||||||
|
green=''\\033[32m'';
|
||||||
|
};
|
||||||
|
|
||||||
# Bundled version of `emacs-overlay`
|
# Bundled version of `emacs-overlay`
|
||||||
emacs-overlay = import (lock "emacs-overlay") pkgs pkgs;
|
emacs-overlay = import (lock "emacs-overlay") pkgs pkgs;
|
||||||
|
|
||||||
@ -187,14 +193,10 @@ let
|
|||||||
]));
|
]));
|
||||||
|
|
||||||
build-summary = writeShellScript "build-summary" ''
|
build-summary = writeShellScript "build-summary" ''
|
||||||
BOLD=\\033[1m
|
printf "\n${fmt.green}Successfully built nix-doom-emacs!${fmt.reset}\n"
|
||||||
GREEN=\\033[32m
|
printf "${fmt.bold} ==> doom-emacs is installed to ${doom-emacs}${fmt.reset}\n"
|
||||||
RESET=\\033[0m
|
printf "${fmt.bold} ==> private configuration is installed to ${doomDir}${fmt.reset}\n"
|
||||||
|
printf "${fmt.bold} ==> Dependencies are installed to ${doomLocal}${fmt.reset}\n"
|
||||||
printf "\n''${GREEN}Successfully built nix-doom-emacs!''${RESET}\n"
|
|
||||||
printf "''${BOLD} ==> doom-emacs is installed to ${doom-emacs}''${RESET}\n"
|
|
||||||
printf "''${BOLD} ==> private configuration is installed to ${doomDir}''${RESET}\n"
|
|
||||||
printf "''${BOLD} ==> Dependencies are installed to ${doomLocal}''${RESET}\n"
|
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
emacs.overrideAttrs (esuper:
|
emacs.overrideAttrs (esuper:
|
||||||
|
Reference in New Issue
Block a user