2022-10-21 18:38:19 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-11-09 15:59:12 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, scdoc
|
|
|
|
, gnome-builder
|
|
|
|
, glib
|
|
|
|
, libgee
|
|
|
|
, json-glib
|
|
|
|
, jsonrpc-glib
|
|
|
|
, vala
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vala-language-server";
|
2023-03-27 19:17:25 +00:00
|
|
|
version = "0.48.7";
|
2020-11-09 15:59:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-07-14 12:49:19 +00:00
|
|
|
owner = "vala-lang";
|
2020-11-09 15:59:12 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-03-27 19:17:25 +00:00
|
|
|
sha256 = "sha256-Vl5DjKBdpk03aPD+0xGoTwD9Slg1rREorqZGX5o10cY=";
|
2020-11-09 15:59:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2022-12-28 21:21:41 +00:00
|
|
|
updateScript = nix-update-script { };
|
2020-11-09 15:59:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
scdoc
|
2023-03-15 16:39:30 +00:00
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
2020-11-09 15:59:12 +00:00
|
|
|
# GNOME Builder Plugin
|
|
|
|
gnome-builder
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
libgee
|
|
|
|
json-glib
|
|
|
|
jsonrpc-glib
|
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-09 15:59:12 +00:00
|
|
|
description = "Code Intelligence for Vala & Genie";
|
2022-07-14 12:49:19 +00:00
|
|
|
homepage = "https://github.com/vala-lang/vala-language-server";
|
2020-11-09 15:59:12 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = with maintainers; [ andreasfelix ];
|
2023-03-15 16:39:30 +00:00
|
|
|
platforms = platforms.unix;
|
2020-11-09 15:59:12 +00:00
|
|
|
};
|
|
|
|
}
|