summaryrefslogtreecommitdiff
path: root/devel/nixd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/nixd/Makefile')
-rw-r--r--devel/nixd/Makefile35
1 files changed, 35 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>