mirror of
https://github.com/nix-community/nix-doom-emacs
synced 2025-08-19 13:43:38 -05:00
nix-doom-emacs: add a summary at the end of build
It makes debugging so much easier
This commit is contained in:
13
default.nix
13
default.nix
@@ -49,6 +49,7 @@
|
|||||||
, runCommand
|
, runCommand
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, substituteAll
|
, substituteAll
|
||||||
|
, writeShellScript
|
||||||
, writeShellScriptBin
|
, writeShellScriptBin
|
||||||
, writeTextDir }:
|
, writeTextDir }:
|
||||||
|
|
||||||
@@ -171,6 +172,17 @@ let
|
|||||||
in (emacsPackages.emacsWithPackages (epkgs: [
|
in (emacsPackages.emacsWithPackages (epkgs: [
|
||||||
load-config-from-site
|
load-config-from-site
|
||||||
]));
|
]));
|
||||||
|
|
||||||
|
build-summary = writeShellScript "build-summary" ''
|
||||||
|
BOLD=\\033[1m
|
||||||
|
GREEN=\\033[32m
|
||||||
|
RESET=\\033[0m
|
||||||
|
|
||||||
|
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:
|
||||||
let cmd = ''
|
let cmd = ''
|
||||||
@@ -184,6 +196,7 @@ emacs.overrideAttrs (esuper:
|
|||||||
# https://github.com/NixOS/nixpkgs/issues/66706
|
# https://github.com/NixOS/nixpkgs/issues/66706
|
||||||
rm -rf $out/share
|
rm -rf $out/share
|
||||||
ln -s ${esuper.emacs}/share $out
|
ln -s ${esuper.emacs}/share $out
|
||||||
|
${build-summary}
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
if esuper ? buildCommand then
|
if esuper ? buildCommand then
|
||||||
|
Reference in New Issue
Block a user