nixpkgs-suyu/pkgs/tools/text/gtranslator/default.nix

75 lines
1.3 KiB
Nix
Raw Normal View History

2018-09-14 20:58:06 +02:00
{ stdenv
, fetchurl
, meson
, ninja
, pkgconfig
, itstool
, gettext
, python3
, wrapGAppsHook
, libxml2
, libgda
2019-10-28 03:23:28 +01:00
, libsoup
, json-glib
2018-09-14 20:58:06 +02:00
, gspell
, glib
, libdazzle
2018-09-14 20:58:06 +02:00
, gtk3
, gtksourceview4
, gnome3
, gsettings-desktop-schemas
}:
stdenv.mkDerivation rec {
pname = "gtranslator";
version = "3.36.0";
2018-09-14 20:58:06 +02:00
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "LaodO1m0o171TfCHNFsD4XA+clCB+drFQ1OSKKcVrdM=";
2018-09-14 20:58:06 +02:00
};
nativeBuildInputs = [
meson
ninja
pkgconfig
itstool
gettext
python3
wrapGAppsHook
];
buildInputs = [
libxml2
glib
gtk3
libdazzle
2018-09-14 20:58:06 +02:00
gtksourceview4
libgda
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 = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; {
description = "GNOME translation making program";
homepage = https://wiki.gnome.org/Apps/Gtranslator;
license = licenses.gpl3Plus;
maintainers = with maintainers; [ jtojnar ];
platforms = platforms.linux;
};
}