mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
build: add git sha to version when built with nix flake (#21210)
This commit is contained in:
parent
b49599ce7e
commit
849f544d62
@ -10,9 +10,12 @@
|
|||||||
{
|
{
|
||||||
overlay = final: prev: {
|
overlay = final: prev: {
|
||||||
|
|
||||||
neovim = final.neovim-unwrapped.overrideAttrs (oa: {
|
neovim = final.neovim-unwrapped.overrideAttrs (oa: rec {
|
||||||
version = "master";
|
version = self.shortRev or "dirty";
|
||||||
src = ../.;
|
src = ../.;
|
||||||
|
preConfigure = ''
|
||||||
|
sed -i cmake.config/versiondef.h.in -e 's/@NVIM_VERSION_PRERELEASE@/-dev-${version}/'
|
||||||
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
# a development binary to help debug issues
|
# a development binary to help debug issues
|
||||||
|
Loading…
Reference in New Issue
Block a user