Skip to content

Commit

Permalink
build: add git sha to version when built with nix flake (neovim#21210)
Browse files Browse the repository at this point in the history
  • Loading branch information
will authored and yesean committed Mar 25, 2023
1 parent 4fbbe38 commit 0b33ff4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions contrib/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b33ff4

Please sign in to comment.