summaryrefslogtreecommitdiff
path: root/devel/nixd
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-07-12 02:37:06 +0200
committercashmere <cashmere@autistici.org>2026-07-12 02:37:06 +0200
commit76dcfdc25e93f84f542adbd9519c72af5d4aadc2 (patch)
tree7b3634690e2f3dbde65702f565191ca6b93e0ffa /devel/nixd
parent235b173983eced9c291beacf681ae0bb2f1d6de5 (diff)
downloadports-76dcfdc25e93f84f542adbd9519c72af5d4aadc2.tar.gz
devel: add lsp-server
Diffstat (limited to 'devel/nixd')
-rw-r--r--devel/nixd/Makefile35
-rw-r--r--devel/nixd/distinfo3
-rw-r--r--devel/nixd/pkg-descr9
-rw-r--r--devel/nixd/pkg-plist39
4 files changed, 86 insertions, 0 deletions
diff --git a/devel/nixd/Makefile b/devel/nixd/Makefile
new file mode 100644
index 0000000..d25103f
--- /dev/null
+++ b/devel/nixd/Makefile
@@ -0,0 +1,35 @@
+PORTNAME= nixd
+DISTVERSION= 2.9.1
+CATEGORIES= devel
+
+MAINTAINER= cashmere@autistici.org
+COMMENT= Feature-rich Nix language server interoperating with C++ nix
+WWW= https://github.com/nix-community/nixd
+
+LICENSE= LGPL3+
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${LOCALBASE}/include/gtest/gtest.h:devel/googletest
+LIB_DEPENDS= libboost_context.so:devel/boost-libs \
+ libnixcmd.so:sysutils/nix \
+ libnixexpr.so:sysutils/nix \
+ libnixflake.so:sysutils/nix \
+ libnixmain.so:sysutils/nix
+RUN_DEPENDS= ${LOCALBASE}/bin/nix:sysutils/nix
+
+USES= compiler:c++20-lang llvm:21,build,lib,noexport meson ninja pkgconfig python:build
+
+USE_GITHUB= yes
+GH_ACCOUNT= nix-community
+GH_PROJECT= nixd
+GH_TAGNAME= ${DISTVERSION}
+
+CONFIGURE_ENV= LLVM_CONFIG=${LLVM_CONFIG}
+
+USE_LDCONFIG= yes
+
+# nixd 2.9.1 requires Nix 2.34. FreeBSD ports currently ships sysutils/nix 2.32.4,
+# so this port will not build until the Nix dependency is updated.
+# TODO: verify the build and remove this comment once sysutils/nix reaches 2.34+.
+
+.include <bsd.port.mk>
diff --git a/devel/nixd/distinfo b/devel/nixd/distinfo
new file mode 100644
index 0000000..28fe7d1
--- /dev/null
+++ b/devel/nixd/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1783793858
+SHA256 (nix-community-nixd-2.9.1_GH0.tar.gz) = 845278d18f13476c8f2dc3b548b727411f8c8f0d601721270c4b3f76ab36b592
+SIZE (nix-community-nixd-2.9.1_GH0.tar.gz) = 1856533
diff --git a/devel/nixd/pkg-descr b/devel/nixd/pkg-descr
new file mode 100644
index 0000000..8bacf85
--- /dev/null
+++ b/devel/nixd/pkg-descr
@@ -0,0 +1,9 @@
+nixd is a feature-rich Nix language server that interoperates with the C++ Nix
+implementation. By linking against the Nix library it provides:
+
+ - Nixpkgs option support for NixOS, home-manager and flake-parts.
+ - Lazy, evaluated Nixpkgs package completion.
+ - Shared evaluation caches (flake, file) with the system Nix install.
+ - Cross-file analysis such as goto-definition into nixpkgs.
+
+WWW: https://github.com/nix-community/nixd
diff --git a/devel/nixd/pkg-plist b/devel/nixd/pkg-plist
new file mode 100644
index 0000000..bff3e79
--- /dev/null
+++ b/devel/nixd/pkg-plist
@@ -0,0 +1,39 @@
+bin/nixd
+bin/nixf-tidy
+libexec/nixd-attrset-eval
+lib/libnixd-lspserver.so
+lib/libnixd-lspserver.so.0
+lib/libnixd-lspserver.so.0.0.0
+lib/libnixd.so
+lib/libnixd.so.0
+lib/libnixd.so.0.0.0
+lib/libnixf.so
+lib/libnixf.so.0
+lib/libnixf.so.0.0.0
+lib/libnixt.so
+lib/libnixt.so.0
+lib/libnixt.so.0.0.0
+libdata/pkgconfig/nixf.pc
+libdata/pkgconfig/nixt.pc
+include/nixf/Basic/Diagnostic.h
+include/nixf/Basic/DiagnosticEnum.h
+include/nixf/Basic/JSONDiagnostic.h
+include/nixf/Basic/NodeKinds.inc
+include/nixf/Basic/Nodes/Attrs.h
+include/nixf/Basic/Nodes/Basic.h
+include/nixf/Basic/Nodes/Expr.h
+include/nixf/Basic/Nodes/Lambda.h
+include/nixf/Basic/Nodes/Op.h
+include/nixf/Basic/Nodes/Simple.h
+include/nixf/Basic/NoteKinds.inc
+include/nixf/Basic/Range.h
+include/nixf/Parse/Parser.h
+include/nixf/Parse/SyntaxKinds.inc
+include/nixf/Parse/TokenKinds.inc
+include/nixf/Parse/Tokens.h
+include/nixf/Sema/ParentMap.h
+include/nixf/Sema/PrimOpInfo.h
+include/nixf/Sema/SemaActions.h
+include/nixf/Sema/VariableLookup.h
+include/nixt/InitEval.h
+include/nixt/Value.h