2022-10-21 18:38:19 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-11-09 15:59:12 +00:00
|
|
|
, fetchFromGitHub
|
2022-10-21 18:38:19 +00:00
|
|
|
, fetchpatch
|
2020-11-09 15:59:12 +00:00
|
|
|
, nix-update-script
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, scdoc
|
|
|
|
, gnome-builder
|
|
|
|
, glib
|
|
|
|
, libgee
|
|
|
|
, json-glib
|
|
|
|
, jsonrpc-glib
|
|
|
|
, vala
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vala-language-server";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "0.48.5";
|
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;
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-gntGnz8uqGz2EGwWWyty/N1ImaUKAPtXVZcjgp73SQM=";
|
2020-11-09 15:59:12 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
patches = [
|
|
|
|
# Fix regex for links in comments
|
|
|
|
# https://github.com/vala-lang/vala-language-server/pull/268
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/vala-lang/vala-language-server/commit/b6193265d68b90755d57938c2ba1895841cf4b36.patch";
|
|
|
|
sha256 = "sha256-nWG+xQAPDVBXamuKQymvn/FBHEP7Ta9p/vhYjxxBGzI=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-11-09 15:59:12 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
scdoc
|
|
|
|
# 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 ];
|
2020-11-09 15:59:12 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|