2022-07-18 16:21:45 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, python3
|
|
|
|
, blueprint-compiler
|
|
|
|
, desktop-file-utils
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, gtk4
|
|
|
|
, gobject-introspection
|
|
|
|
, gst_all_1
|
|
|
|
, libsoup_3
|
2024-04-21 15:54:59 +00:00
|
|
|
, glib-networking
|
2022-07-18 16:21:45 +00:00
|
|
|
, libadwaita
|
2024-06-20 14:57:18 +00:00
|
|
|
, libsecret
|
2023-01-11 07:51:40 +00:00
|
|
|
, nix-update-script
|
2022-07-18 16:21:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "dialect";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2.4.2";
|
2024-06-20 14:57:18 +00:00
|
|
|
pyproject = false; # built with meson
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dialect-app";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "dialect";
|
2022-07-18 16:21:45 +00:00
|
|
|
rev = version;
|
|
|
|
fetchSubmodules = true;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-DAhzvia5ut806rTc2iMuMrVKyYBSaAiMyC4rEOyU4x0=";
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
2024-04-21 15:54:59 +00:00
|
|
|
gst_all_1.gst-plugins-good
|
2022-07-18 16:21:45 +00:00
|
|
|
libsoup_3
|
2024-04-21 15:54:59 +00:00
|
|
|
glib-networking
|
2022-07-18 16:21:45 +00:00
|
|
|
libadwaita
|
2024-06-20 14:57:18 +00:00
|
|
|
libsecret
|
2022-07-18 16:21:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
dbus-python
|
|
|
|
gtts
|
|
|
|
pygobject3
|
2024-04-21 15:54:59 +00:00
|
|
|
beautifulsoup4
|
2022-07-18 16:21:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Prevent double wrapping, let the Python wrapper use the args in preFixup.
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
# handle setup hooks better
|
|
|
|
strictDeps = false;
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
meta = {
|
2022-07-18 16:21:45 +00:00
|
|
|
homepage = "https://github.com/dialect-app/dialect";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Translation app for GNOME";
|
|
|
|
maintainers = with lib.maintainers; [ aleksana ];
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "dialect";
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
}
|