From 7335bc5d6a6c74f813aac870a2a5006726733375 Mon Sep 17 00:00:00 2001 From: aleksana Date: Sun, 3 Nov 2024 21:18:17 +0800 Subject: [PATCH] dissent: fix build by pinning libspelling 0.2.1 --- pkgs/by-name/di/dissent/package.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/di/dissent/package.nix b/pkgs/by-name/di/dissent/package.nix index 36708fb39215..ee344119bb3b 100644 --- a/pkgs/by-name/di/dissent/package.nix +++ b/pkgs/by-name/di/dissent/package.nix @@ -1,4 +1,5 @@ { buildGoModule +, fetchFromGitLab , fetchFromGitHub , gobject-introspection , gst_all_1 @@ -12,6 +13,19 @@ , wrapGAppsHook4 }: +let + libspelling_2_1 = libspelling.overrideAttrs { + version = "0.2.1"; + + src = fetchFromGitLab { + domain = "gitlab.gnome.org"; + owner = "GNOME"; + repo = "libspelling"; + rev = "refs/tags/0.2.1"; + hash = "sha256-0OGcwPGWtYYf0XmvzXEaQgebBOW/6JWcDuF4MlQjCZQ="; + }; + }; +in buildGoModule rec { pname = "dissent"; version = "0.0.30"; @@ -39,7 +53,9 @@ buildGoModule rec { libadwaita libcanberra-gtk3 sound-theme-freedesktop - libspelling + # gotk4-spelling fails to build with libspelling >= 0.3.0 + # https://github.com/diamondburned/gotk4-spelling/issues/1 + libspelling_2_1 gtksourceview5 ];