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