2022-03-24 07:08:22 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2018-09-14 18:58:06 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 09:17:16 +00:00
|
|
|
, pkg-config
|
2018-09-14 18:58:06 +00:00
|
|
|
, itstool
|
|
|
|
, gettext
|
|
|
|
, python3
|
|
|
|
, wrapGAppsHook
|
|
|
|
, libxml2
|
2022-02-27 11:11:02 +00:00
|
|
|
, libgda6
|
2021-04-13 18:58:16 +00:00
|
|
|
, libhandy
|
2022-05-04 13:16:35 +00:00
|
|
|
, libsoup_3
|
2019-10-28 02:23:28 +00:00
|
|
|
, json-glib
|
2018-09-14 18:58:06 +00:00
|
|
|
, gspell
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, gtksourceview4
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2018-09-14 18:58:06 +00:00
|
|
|
, gsettings-desktop-schemas
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gtranslator";
|
2022-05-04 13:16:35 +00:00
|
|
|
version = "42.0";
|
2018-09-14 18:58:06 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-04-13 18:58:16 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2022-05-04 13:16:35 +00:00
|
|
|
sha256 = "Kme8v+ZDBhsGltiaEIR9UL81kF/zNhuYcTV9PjQi8Ts=";
|
2018-09-14 18:58:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 09:17:16 +00:00
|
|
|
pkg-config
|
2018-09-14 18:58:06 +00:00
|
|
|
itstool
|
|
|
|
gettext
|
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libxml2
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
gtksourceview4
|
2022-02-27 11:11:02 +00:00
|
|
|
libgda6
|
2021-04-13 18:58:16 +00:00
|
|
|
libhandy
|
2022-05-04 13:16:35 +00:00
|
|
|
libsoup_3
|
2019-10-28 02:23:28 +00:00
|
|
|
json-glib
|
2018-09-14 18:58:06 +00:00
|
|
|
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-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2018-09-14 18:58:06 +00:00
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-14 18:58:06 +00:00
|
|
|
description = "GNOME translation making program";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Gtranslator";
|
2018-09-14 18:58:06 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2023-01-31 14:21:37 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-09-14 18:58:06 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|