nixpkgs/pkgs/applications/misc/dialect/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

86 lines
1.5 KiB
Nix
Raw Normal View History

2022-07-15 04:27:51 +00:00
{ lib
, fetchFromGitHub
, wrapGAppsHook4
, python3
, appstream-glib
, blueprint-compiler
, desktop-file-utils
, meson
, ninja
, pkg-config
, glib
, gtk4
, gobject-introspection
, gst_all_1
, libsoup_3
2024-03-01 10:42:34 +00:00
, glib-networking
2022-07-15 04:27:51 +00:00
, libadwaita
2023-01-10 13:27:07 +00:00
, nix-update-script
2022-07-15 04:27:51 +00:00
}:
python3.pkgs.buildPythonApplication rec {
pname = "dialect";
2024-05-04 02:19:14 +00:00
version = "2.3.0";
2022-07-15 04:27:51 +00:00
format = "other";
src = fetchFromGitHub {
owner = "dialect-app";
2024-03-01 10:42:34 +00:00
repo = "dialect";
2022-07-15 04:27:51 +00:00
rev = version;
fetchSubmodules = true;
2024-05-04 02:19:14 +00:00
hash = "sha256-A6jZHcSzHSmHLvyegyzxjQ6+jL6rLb7oefhryXoSrH4=";
2022-07-15 04:27:51 +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-03-01 10:42:34 +00:00
gst_all_1.gst-plugins-good
2022-07-15 04:27:51 +00:00
libsoup_3
2024-03-01 10:42:34 +00:00
glib-networking
2022-07-15 04:27:51 +00:00
libadwaita
];
propagatedBuildInputs = with python3.pkgs; [
dbus-python
gtts
pygobject3
2024-03-01 10:42:34 +00:00
beautifulsoup4
2022-07-15 04:27:51 +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;
passthru.updateScript = nix-update-script { };
2023-01-10 13:27:07 +00:00
2022-07-15 04:27:51 +00:00
meta = with lib; {
homepage = "https://github.com/dialect-app/dialect";
description = "A translation app for GNOME";
maintainers = with maintainers; [ aleksana ];
2022-07-15 04:27:51 +00:00
license = licenses.gpl3Plus;
platforms = platforms.linux;
2024-03-02 11:27:34 +00:00
mainProgram = "dialect";
2022-07-15 04:27:51 +00:00
};
}