c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
68 lines
1.3 KiB
Nix
68 lines
1.3 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, nix-update-script
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, scdoc
|
|
, gnome-builder
|
|
, glib
|
|
, libgee
|
|
, json-glib
|
|
, jsonrpc-glib
|
|
, vala
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "vala-language-server";
|
|
version = "0.48.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vala-lang";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-gntGnz8uqGz2EGwWWyty/N1ImaUKAPtXVZcjgp73SQM=";
|
|
};
|
|
|
|
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=";
|
|
})
|
|
];
|
|
|
|
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
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Code Intelligence for Vala & Genie";
|
|
homepage = "https://github.com/vala-lang/vala-language-server";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ andreasfelix ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|