mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
468cb5980b
Since GNOME version is now 40, it no longer makes sense to use the old attribute name.
77 lines
1.3 KiB
Nix
77 lines
1.3 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, itstool
|
|
, gettext
|
|
, python3
|
|
, wrapGAppsHook
|
|
, libxml2
|
|
, libgda
|
|
, libhandy
|
|
, libsoup
|
|
, json-glib
|
|
, gspell
|
|
, glib
|
|
, libdazzle
|
|
, gtk3
|
|
, gtksourceview4
|
|
, gnome
|
|
, gsettings-desktop-schemas
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gtranslator";
|
|
version = "40.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
|
sha256 = "0d48nc11z0m91scy21ah56ysxns82zvswx8lglvlkig1vqvblgpc";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
itstool
|
|
gettext
|
|
python3
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
libxml2
|
|
glib
|
|
gtk3
|
|
libdazzle
|
|
gtksourceview4
|
|
libgda
|
|
libhandy
|
|
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 = gnome.updateScript {
|
|
packageName = pname;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "GNOME translation making program";
|
|
homepage = "https://wiki.gnome.org/Apps/Gtranslator";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|