nixpkgs-suyu/pkgs/applications/misc/gnome-tecla/default.nix
Bobby Rong 5ff2417593 gnome-tecla: 45.rc → 45.0
https://gitlab.gnome.org/GNOME/tecla/-/compare/45.rc...45.0

Tested and confirmed l10n works.

Changelog-reviewed-by: Bobby Rong <rjl931189261@126.com>
Changelog-reviewed-by: Jan Tojnar <jtojnar@gmail.com>
Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
2023-11-21 08:42:15 +01:00

55 lines
978 B
Nix

{ stdenv
, lib
, fetchurl
, meson
, ninja
, pkg-config
, wrapGAppsHook4
, glib
, gtk4
, libadwaita
, libxkbcommon
, wayland
, gnome
}:
stdenv.mkDerivation (finalAttrs: {
pname = "tecla";
version = "45.0";
src = fetchurl {
url = "mirror://gnome/sources/tecla/${lib.versions.major finalAttrs.version}/tecla-${finalAttrs.version}.tar.xz";
hash = "sha256-XAK7QBmxz/tWY9phB1A+/4U4Nqh4PdRwXdBKSfetwls=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook4
];
buildInputs = [
glib
gtk4
libadwaita
libxkbcommon
wayland
];
passthru = {
updateScript = gnome.updateScript {
attrPath = "gnome-tecla";
packageName = "tecla";
};
};
meta = with lib; {
description = "Keyboard layout viewer";
homepage = "https://gitlab.gnome.org/GNOME/tecla";
license = licenses.gpl2Plus;
maintainers = teams.gnome.members;
platforms = platforms.unix;
mainProgram = "tecla";
};
})