2022-03-30 09:31:56 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, itstool
|
|
|
|
, gettext
|
2024-05-15 15:35:15 +00:00
|
|
|
, desktop-file-utils
|
2024-01-02 11:29:13 +00:00
|
|
|
, wrapGAppsHook4
|
2020-04-24 23:36:52 +00:00
|
|
|
, libxml2
|
2024-01-02 11:29:13 +00:00
|
|
|
, libadwaita
|
2022-03-30 09:31:56 +00:00
|
|
|
, libgda6
|
2022-05-18 14:49:53 +00:00
|
|
|
, libsoup_3
|
2024-01-02 11:29:13 +00:00
|
|
|
, libspelling
|
2020-04-24 23:36:52 +00:00
|
|
|
, json-glib
|
|
|
|
, glib
|
2024-01-02 11:29:13 +00:00
|
|
|
, gtk4
|
|
|
|
, gtksourceview5
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
, gsettings-desktop-schemas
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gtranslator";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "46.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-05-20 23:08:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-tK8xhIkUkf2JwaBGVlIxAVbAfRVraiThwH86TPdXlWg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
itstool
|
|
|
|
gettext
|
2024-05-15 15:35:15 +00:00
|
|
|
desktop-file-utils
|
2024-01-02 11:29:13 +00:00
|
|
|
wrapGAppsHook4
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libxml2
|
|
|
|
glib
|
2024-01-02 11:29:13 +00:00
|
|
|
gtk4
|
|
|
|
gtksourceview5
|
|
|
|
libadwaita
|
2022-03-30 09:31:56 +00:00
|
|
|
libgda6
|
2022-05-18 14:49:53 +00:00
|
|
|
libsoup_3
|
2024-01-02 11:29:13 +00:00
|
|
|
libspelling
|
2020-04-24 23:36:52 +00:00
|
|
|
json-glib
|
|
|
|
gettext
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "GNOME translation making program";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gtranslator";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gtranslator";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ bobby285271 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|