Patch nimlangserver to work around missing /usr/compiler/pathutils
This commit is contained in:
parent
318312848c
commit
8c870ee447
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
*.zst
|
*.zst
|
||||||
/nimlangserver/
|
/nimlangserver/
|
||||||
/src/
|
/src/
|
||||||
|
/pkg/
|
||||||
|
16
PKGBUILD
16
PKGBUILD
@ -8,12 +8,19 @@ arch=('x86_64')
|
|||||||
url="https://github.com/nim-lang/langserver"
|
url="https://github.com/nim-lang/langserver"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
depends=('nim>=1.0.0')
|
depends=('nim>=1.0.0')
|
||||||
makedepends=('git') # pathutils to makedepends
|
makedepends=('git')
|
||||||
# FIXME Blocker with missing pathutil library of nim (https://github.com/nim-lang/langserver/issues/22)
|
|
||||||
provides=("${pkgname%-git}")
|
provides=("${pkgname%-git}")
|
||||||
conflicts=("${pkgname%-git}")
|
conflicts=("${pkgname%-git}")
|
||||||
source=("${pkgname%-git}::git+$url.git")
|
source=("${pkgname%-git}::git+$url.git"
|
||||||
sha256sums=('SKIP')
|
"nimlangserver.patch")
|
||||||
|
sha256sums=('SKIP'
|
||||||
|
'76a987077dea6a224a6337a08f172f92da1734af6c7e31e8674d131654aba07c')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
# patching
|
||||||
|
cd "$srcdir/${pkgname%-git}"
|
||||||
|
patch --strip=2 < ../../nimlangserver.patch # work around "Error: cannot open file: /usr/compiler/pathutils" https://github.com/nim-lang/langserver/issues/22
|
||||||
|
}
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd "$srcdir/${pkgname%-git}"
|
cd "$srcdir/${pkgname%-git}"
|
||||||
@ -21,6 +28,7 @@ pkgver() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
# FIXME missing "packages.json" file
|
||||||
# change into source
|
# change into source
|
||||||
cd "$srcdir/${pkgname%-git}"
|
cd "$srcdir/${pkgname%-git}"
|
||||||
# compile program
|
# compile program
|
||||||
|
12
nimlangserver.patch
Normal file
12
nimlangserver.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff '--color=auto' --unified --recursive --text --color src/nimlangserver-orig/nimlangserver.nim src/nimlangserver/nimlangserver.nim
|
||||||
|
--- src/nimlangserver-orig/nimlangserver.nim 2023-05-25 14:56:42.996481704 +0200
|
||||||
|
+++ src/nimlangserver/nimlangserver.nim 2023-05-25 14:56:51.320521779 +0200
|
||||||
|
@@ -2,7 +2,7 @@
|
||||||
|
faststreams/asynctools_adapters, faststreams/inputs, faststreams/outputs,
|
||||||
|
json_rpc/streamconnection, os, sugar, sequtils, hashes, osproc,
|
||||||
|
suggestapi, protocol/enums, protocol/types, with, tables, strutils, sets,
|
||||||
|
- ./utils, ./pipes, chronicles, std/re, uri, "$nim/compiler/pathutils"
|
||||||
|
+ ./utils, ./pipes, chronicles, std/re, uri, "$lib/compiler/pathutils"
|
||||||
|
|
||||||
|
const
|
||||||
|
RESTART_COMMAND = "nimlangserver.restart"
|
Loading…
Reference in New Issue
Block a user