aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Leinweber <will@users.noreply.github.com>2022-12-30 18:24:40 +0100
committerGitHub <noreply@github.com>2022-12-30 18:24:40 +0100
commit849f544d6285c6f49718a74bcaff964aeffe3db4 (patch)
tree9815ebf1d736251af942b30c1b5ee9f15e411ebb
parentb49599ce7e6582a2324353baf996c84d084e8a46 (diff)
downloadrneovim-849f544d6285c6f49718a74bcaff964aeffe3db4.tar.gz
rneovim-849f544d6285c6f49718a74bcaff964aeffe3db4.tar.bz2
rneovim-849f544d6285c6f49718a74bcaff964aeffe3db4.zip
build: add git sha to version when built with nix flake (#21210)
-rw-r--r--contrib/flake.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/flake.nix b/contrib/flake.nix
index e4242586fc..0898c943d7 100644
--- 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