about summary refs log tree commit diff
path: root/pkgs/development/compilers/nim/toLocation.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/nim/toLocation.patch')
-rw-r--r--pkgs/development/compilers/nim/toLocation.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/development/compilers/nim/toLocation.patch b/pkgs/development/compilers/nim/toLocation.patch
new file mode 100644
index 0000000000000..1cfa15fad6e5f
--- /dev/null
+++ b/pkgs/development/compilers/nim/toLocation.patch
@@ -0,0 +1,20 @@
+diff --git a/lib/std/private/miscdollars.nim b/lib/std/private/miscdollars.nim
+index a41cf1bc1..5b92c696a 100644
+--- a/lib/std/private/miscdollars.nim
++++ b/lib/std/private/miscdollars.nim
+@@ -4,12 +4,12 @@ template toLocation*(result: var string, file: string | cstring, line: int, col:
+   # it can be done in a single place.
+   result.add file
+   if line > 0:
+-    result.add "("
++    result.add ':'
+     # simplify this after moving moving `include strmantle` above import assertions`
+     when declared(addInt): result.addInt line
+     else: result.add $line
+     if col > 0:
+-      result.add ", "
++      result.add ':'
+       when declared(addInt): result.addInt col
+       else: result.add $col
+-    result.add ")"
++    result.add ':'