mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
86 lines
1.5 KiB
Nix
86 lines
1.5 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, wrapGAppsHook4
|
|
, python3
|
|
, appstream-glib
|
|
, blueprint-compiler
|
|
, desktop-file-utils
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, glib
|
|
, gtk4
|
|
, gobject-introspection
|
|
, gst_all_1
|
|
, libsoup_3
|
|
, glib-networking
|
|
, libadwaita
|
|
, nix-update-script
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "dialect";
|
|
version = "2.3.0";
|
|
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dialect-app";
|
|
repo = "dialect";
|
|
rev = version;
|
|
fetchSubmodules = true;
|
|
hash = "sha256-A6jZHcSzHSmHLvyegyzxjQ6+jL6rLb7oefhryXoSrH4=";
|
|
};
|
|
|
|
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
|
|
];
|
|
|
|
propagatedBuildInputs = 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[@]}")
|
|
'';
|
|
|
|
doCheck = false;
|
|
|
|
# handle setup hooks better
|
|
strictDeps = false;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/dialect-app/dialect";
|
|
description = "A translation app for GNOME";
|
|
maintainers = with maintainers; [ aleksana ];
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
mainProgram = "dialect";
|
|
};
|
|
}
|