remove nph and nim-ffi from vendor

This commit is contained in:
darshankabariya 2026-01-06 23:13:41 +05:30
parent c6e57ed1ee
commit 72474eebb8
No known key found for this signature in database
GPG Key ID: 9A92CCD9899F0D22
4 changed files with 8 additions and 15 deletions

View File

@ -335,19 +335,14 @@ NPH_NIMBLE := $(NIMBLE_BIN_DIR)/nph
build-nph: | build deps
ifeq ("$(wildcard $(NPH))","")
@echo -e $(INFO_MSG) "Building nph from nimble package..."
nimble build nph -y
@if [ -f "$(NPH_NIMBLE)" ]; then \
cp "$(NPH_NIMBLE)" "$(NPH)"; \
echo "nph utility is available at $(NPH)"; \
else \
echo "nph binary not found at $(NPH_NIMBLE), trying alternate location..."; \
NPH_PKG=$$(ls -d $(NIMBLE_PKGS_DIR)/nph-* 2>/dev/null | head -1); \
if [ -n "$$NPH_PKG" ]; then \
nim c --skipParentCfg:on -o:$(NPH) $$NPH_PKG/src/nph.nim; \
echo "nph utility is available at $(NPH)"; \
fi; \
@echo -e $(INFO_MSG) "Installing nph via Nimble..."
nimble install -y nph
@# copy binary next to Nim compiler if not already there
@if [ ! -f "$(NPH)" ]; then \
NPH_INSTALLED=$$(command -v nph 2>/dev/null || true); \
[ -n "$$NPH_INSTALLED" ] && cp "$$NPH_INSTALLED" "$(NPH)"; \
fi
@echo "nph utility is available at $(NPH)"
else
@echo "nph utility already exists at $(NPH)"
endif

1
vendor/nim-ffi vendored

@ -1 +0,0 @@
Subproject commit d7a5492121aad190cf549436836e2fa42e34ff9b

1
vendor/nph vendored

@ -1 +0,0 @@
Subproject commit c6e03162dc2820d3088660f644818d7040e95791

View File

@ -44,7 +44,7 @@ requires "dnsclient"
requires "nph"
# FFI framework - from logos-messaging fork
requires "https://github.com/logos-messaging/nim-ffi.git >= 0.1.0"
requires "https://github.com/logos-messaging/nim-ffi.git#nim_ffi_identation"
# Packages with native dependencies
requires "eth"