nixpkgs/pkgs/desktops/gnome/core/gnome-dictionary/default.nix
Jan Tojnar 468cb5980b gnome: rename from gnome3
Since GNOME version is now 40, it no longer makes sense to use the old attribute name.
2021-05-08 09:47:42 +02:00

37 lines
1.2 KiB
Nix

{ lib, stdenv, fetchurl, meson, ninja, pkg-config, desktop-file-utils, appstream-glib, libxslt
, libxml2, gettext, itstool, wrapGAppsHook, docbook_xsl, docbook_xml_dtd_43
, gnome, gtk3, glib, gsettings-desktop-schemas }:
stdenv.mkDerivation rec {
pname = "gnome-dictionary";
version = "40.0";
src = fetchurl {
url = "mirror://gnome/sources/gnome-dictionary/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "1d8dhcfys788vv27v34i3s3x3jdvdi2kqn2a5p8c937a9hm0qr9f";
};
doCheck = true;
nativeBuildInputs = [
meson ninja pkg-config wrapGAppsHook libxml2 gettext itstool
desktop-file-utils appstream-glib libxslt docbook_xsl docbook_xml_dtd_43
];
buildInputs = [ gtk3 glib gsettings-desktop-schemas gnome.adwaita-icon-theme ];
passthru = {
updateScript = gnome.updateScript {
packageName = "gnome-dictionary";
attrPath = "gnome.gnome-dictionary";
};
};
meta = with lib; {
homepage = "https://wiki.gnome.org/Apps/Dictionary";
description = "Dictionary is the GNOME application to look up definitions";
maintainers = teams.gnome.members;
license = licenses.gpl2;
platforms = platforms.linux;
};
}