mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
75 lines
1.3 KiB
Nix
75 lines
1.3 KiB
Nix
{ stdenv
|
|
, fetchurl
|
|
, meson
|
|
, ninja
|
|
, pkgconfig
|
|
, itstool
|
|
, gettext
|
|
, python3
|
|
, wrapGAppsHook
|
|
, libxml2
|
|
, libgda
|
|
, libsoup
|
|
, json-glib
|
|
, gspell
|
|
, glib
|
|
, libdazzle
|
|
, gtk3
|
|
, gtksourceview4
|
|
, gnome3
|
|
, gsettings-desktop-schemas
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gtranslator";
|
|
version = "3.36.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "1lxd2nkji4jk8g2xmyc1a1r3ww710ddk91zh9psmx8xlb4xivaid";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkgconfig
|
|
itstool
|
|
gettext
|
|
python3
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
libxml2
|
|
glib
|
|
gtk3
|
|
libdazzle
|
|
gtksourceview4
|
|
libgda
|
|
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 = {
|
|
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;
|
|
};
|
|
}
|