2022-03-30 09:31:56 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
2022-03-30 09:31:56 +00:00
|
|
|
, fetchpatch
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, itstool
|
|
|
|
, gettext
|
|
|
|
, python3
|
|
|
|
, wrapGAppsHook
|
|
|
|
, libxml2
|
2022-03-30 09:31:56 +00:00
|
|
|
, libgda6
|
2021-05-20 23:08:51 +00:00
|
|
|
, libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
, libsoup
|
|
|
|
, json-glib
|
|
|
|
, gspell
|
|
|
|
, glib
|
|
|
|
, libdazzle
|
|
|
|
, gtk3
|
|
|
|
, gtksourceview4
|
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";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "41.0";
|
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";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "E28R/gOhlJkMQ6/jOL0eoK0U5+H26Gjlv3xbUsTF5eE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
patches = [
|
|
|
|
# Fix build with meson 0.61
|
|
|
|
# data/meson.build:15:5: ERROR: Function does not take positional arguments.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gtranslator/-/commit/7ac572cc8c8c37ca3826ecf0d395edd3c38e8e22.patch";
|
|
|
|
sha256 = "aRg6dYweftV8F7FXykO7m0G+p4SLTFnhTcZx72UCMDE=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libxml2
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
libdazzle
|
|
|
|
gtksourceview4
|
2022-03-30 09:31:56 +00:00
|
|
|
libgda6
|
2021-05-20 23:08:51 +00:00
|
|
|
libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
libsoup
|
|
|
|
json-glib
|
|
|
|
gettext
|
|
|
|
gspell
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson/meson_post_install.py
|
|
|
|
patchShebangs build-aux/meson/meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
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";
|
|
|
|
homepage = "https://wiki.gnome.org/Apps/Gtranslator";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|