Skip to content

Commit

Permalink
Put the Emacs versions provided from the actual executables
Browse files Browse the repository at this point in the history
  • Loading branch information
akirak committed Oct 15, 2023
1 parent 8c72e14 commit 18218ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,13 @@
name = "${emacsName}.nix";
path =
pkgs.runCommand "build-${emacsName}-builtins-nix" {
buildInputs = [emacsPackage];
} ''
EMACS_VERSION="$(emacs --version \
| grep -F "GNU Emacs" \
| grep -oE "[[:digit:]]+(:?\.[[:digit:]]+)+")"
echo >>$out '{'
echo >>$out ' version = "${emacsPackage.version}";'
echo >>$out ' version = "''${EMACS_VERSION}";'
echo >>$out ' libraries = ['
sed -e 's/^/"/' -e 's/$/"/' ${(pkgs.emacsTwist {
inherit emacsPackage;
Expand Down

0 comments on commit 18218ed

Please sign in to comment.