neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 849f544d6285c6f49718a74bcaff964aeffe3db4
parent b49599ce7e6582a2324353baf996c84d084e8a46
Author: Will Leinweber <will@users.noreply.github.com>
Date:   Fri, 30 Dec 2022 18:24:40 +0100

build: add git sha to version when built with nix flake (#21210)


Diffstat:
Mcontrib/flake.nix | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/contrib/flake.nix b/contrib/flake.nix @@ -10,9 +10,12 @@ { overlay = final: prev: { - neovim = final.neovim-unwrapped.overrideAttrs (oa: { - version = "master"; + neovim = final.neovim-unwrapped.overrideAttrs (oa: rec { + version = self.shortRev or "dirty"; src = ../.; + preConfigure = '' + sed -i cmake.config/versiondef.h.in -e 's/@NVIM_VERSION_PRERELEASE@/-dev-${version}/' + ''; }); # a development binary to help debug issues