File nixd.spec of Package nixd
#
# spec file for package [spectemplate]
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: nixd
Version: 2.6.4
Release: 0
Summary: Nix language server
License: LGPL-3.0-only
URL: https://github.com/nix-community/nixd
Source0: %{url}/archive/refs/tags/%{version}/%{name}-%{version}.tar.gz
BuildRequires: boost-devel
BuildRequires: gcc-c++
BuildRequires: llvm-devel
BuildRequires: meson
BuildRequires: nix-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gtest)
BuildRequires: pkgconfig(gtest_main)
BuildRequires: pkgconfig(nlohmann_json)
%description
This is a feature-rich nix language server interoperating with C++ nix.
%package devel
Summary: Development files for nixd
Requires: %{name} = %{version}-%{release}
%description devel
This package contains the development files for nixd, including headers and
pkg-config files.
%prep
%autosetup -p1
%build
%meson
%meson_build
%install
%meson_install
%files
%license LICENSE
%{_bindir}/nixd
%{_bindir}/nixf-tidy
%{_libexecdir}/nixd-attrset-eval
%{_libdir}/libnix*.so
%files devel
%license LICENSE
%{_includedir}/nixf/
%{_includedir}/nixt/
%{_libdir}/pkgconfig/nixf.pc
%{_libdir}/pkgconfig/nixt.pc
%changelog