vala-language-server: Fix build with GLib 2.74

This commit is contained in:
Bobby Rong 2022-10-10 10:18:03 +08:00 committed by Jan Tojnar
parent 375445aead
commit 336d270b74

View file

@ -1,5 +1,7 @@
{ lib, stdenv
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, nix-update-script
, meson
, ninja
@ -24,6 +26,15 @@ stdenv.mkDerivation rec {
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;
@ -52,9 +63,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/vala-lang/vala-language-server";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ andreasfelix ];
# Likely broken by GLib 2.74 switch to PCRE 2.
# https://github.com/vala-lang/vala-language-server/issues/263
broken = true;
platforms = platforms.linux;
};
}