gnome-tecla: init at 45.alpha
https://gitlab.gnome.org/GNOME/tecla/-/commits/45.alpha Note that we have an existing tecla package in Nixpkgs, that is a different project. Tested-by: Jan Tojnar <jtojnar@gmail.com>
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, wrapGAppsHook4
|
||||
, glib
|
||||
, gtk4
|
||||
, libadwaita
|
||||
, libxkbcommon
|
||||
, wayland
|
||||
, gnome
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tecla";
|
||||
version = "45.alpha";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
||||
hash = "sha256-dl96ZD5aHaqd7ywMg988ZRrkveBVM9ZO4VWeuzxOjr0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# https://gitlab.gnome.org/GNOME/tecla/-/merge_requests/8
|
||||
substituteInPlace src/tecla-util.c --replace "xdg[PATH_MAX]" "xdg[1024]"
|
||||
'';
|
||||
|
||||
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";
|
||||
};
|
||||
}
|
||||
@@ -19253,6 +19253,8 @@ with pkgs;
|
||||
|
||||
gnome-firmware = callPackage ../applications/misc/gnome-firmware { };
|
||||
|
||||
gnome-tecla = callPackage ../applications/misc/gnome-tecla { };
|
||||
|
||||
gnome-usage = callPackage ../applications/misc/gnome-usage { };
|
||||
|
||||
gnome-inform7 = callPackage ../applications/editors/gnome-inform7 { };
|
||||
|
||||
Reference in New Issue
Block a user