2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2018-09-14 19:58:06 +01:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 09:17:16 +00:00
|
|
|
, pkg-config
|
2018-09-14 19:58:06 +01:00
|
|
|
, itstool
|
|
|
|
, gettext
|
|
|
|
, python3
|
|
|
|
, wrapGAppsHook
|
|
|
|
, libxml2
|
|
|
|
, libgda
|
2019-10-28 02:23:28 +00:00
|
|
|
, libsoup
|
|
|
|
, json-glib
|
2018-09-14 19:58:06 +01:00
|
|
|
, gspell
|
|
|
|
, glib
|
2020-04-08 16:43:01 +01:00
|
|
|
, libdazzle
|
2018-09-14 19:58:06 +01:00
|
|
|
, gtk3
|
|
|
|
, gtksourceview4
|
|
|
|
, gnome3
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gtranslator";
|
2020-09-21 03:27:04 +01:00
|
|
|
version = "3.38.0";
|
2018-09-14 19:58:06 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 09:19:50 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-09-21 03:27:04 +01:00
|
|
|
sha256 = "282puBoi2SM74Y6Z/VxEj2qwV1nR6UwQWAu4McotdjU=";
|
2018-09-14 19:58:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 09:17:16 +00:00
|
|
|
pkg-config
|
2018-09-14 19:58:06 +01:00
|
|
|
itstool
|
|
|
|
gettext
|
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libxml2
|
|
|
|
glib
|
|
|
|
gtk3
|
2020-04-08 16:43:01 +01:00
|
|
|
libdazzle
|
2018-09-14 19:58:06 +01:00
|
|
|
gtksourceview4
|
|
|
|
libgda
|
2019-10-28 02:23:28 +00:00
|
|
|
libsoup
|
|
|
|
json-glib
|
2018-09-14 19:58:06 +01: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 = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-14 19:58:06 +01:00
|
|
|
description = "GNOME translation making program";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Gtranslator";
|
2018-09-14 19:58:06 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|