Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
90 lines
1.6 KiB
Nix
90 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
wrapGAppsHook4,
|
|
python3,
|
|
blueprint-compiler,
|
|
desktop-file-utils,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
glib,
|
|
gtk4,
|
|
gobject-introspection,
|
|
gst_all_1,
|
|
libsoup_3,
|
|
glib-networking,
|
|
libadwaita,
|
|
libsecret,
|
|
nix-update-script,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "dialect";
|
|
version = "2.5.0";
|
|
pyproject = false; # built with meson
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dialect-app";
|
|
repo = "dialect";
|
|
tag = version;
|
|
fetchSubmodules = true;
|
|
hash = "sha256-TWXJlzuSBy+Ij3s0KS02bh8vdXP10hQpgdz4QMTLf/Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
blueprint-compiler
|
|
desktop-file-utils
|
|
gobject-introspection
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk4
|
|
glib
|
|
gst_all_1.gstreamer
|
|
gst_all_1.gst-plugins-base
|
|
gst_all_1.gst-plugins-good
|
|
libsoup_3
|
|
glib-networking
|
|
libadwaita
|
|
libsecret
|
|
];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
dbus-python
|
|
gtts
|
|
pygobject3
|
|
beautifulsoup4
|
|
];
|
|
|
|
# Prevent double wrapping, let the Python wrapper use the args in preFixup.
|
|
dontWrapGApps = true;
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
'';
|
|
|
|
postFixup = ''
|
|
patchShebangs --update --host $out/share/dialect/search_provider
|
|
'';
|
|
|
|
doCheck = false;
|
|
|
|
strictDeps = true;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
homepage = "https://github.com/dialect-app/dialect";
|
|
description = "Translation app for GNOME";
|
|
teams = [ lib.teams.gnome-circle ];
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "dialect";
|
|
};
|
|
}
|