about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/vim/plugins/patches/fruzzy/get_version.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/editors/vim/plugins/patches/fruzzy/get_version.patch')
-rw-r--r--nixpkgs/pkgs/applications/editors/vim/plugins/patches/fruzzy/get_version.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/editors/vim/plugins/patches/fruzzy/get_version.patch b/nixpkgs/pkgs/applications/editors/vim/plugins/patches/fruzzy/get_version.patch
new file mode 100644
index 000000000000..62aaba118f20
--- /dev/null
+++ b/nixpkgs/pkgs/applications/editors/vim/plugins/patches/fruzzy/get_version.patch
@@ -0,0 +1,25 @@
+diff --git a/rplugin/python3/fruzzy_mod.nim b/rplugin/python3/fruzzy_mod.nim
+index dba0689..0109285 100644
+--- a/rplugin/python3/fruzzy_mod.nim
++++ b/rplugin/python3/fruzzy_mod.nim
+@@ -12,9 +12,7 @@ when defined(profile):
+     import nimprof
+
+ proc getVersion(): string {.compileTime.}=
+-    let ver = staticExec("git describe --tags --always --dirty").strip()
+-    # let cTime = format(times.now(), "yyyy-MM-dd hh:mm:ss")
+-    let branch = staticExec("git rev-parse --abbrev-ref HEAD").strip()
++    let ver = "@version@"
+     var options:seq[string] = newSeq[string]()
+     if not defined(removelogger):
+         options.add("info")
+@@ -26,7 +24,7 @@ proc getVersion(): string {.compileTime.}=
+         options.add("release")
+     let optionsStr = options.join(",")
+
+-    return &"rev: {ver} on branch: {branch} with options: {optionsStr}"
++    return &"version: {ver} with options: {optionsStr}"
+
+ let L = newConsoleLogger(levelThreshold = logging.Level.lvlDebug)
+ addHandler(L)
+