Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
82 lines
1.5 KiB
Nix
82 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
replaceVars,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
vala,
|
|
elementary-settings-daemon,
|
|
libadwaita,
|
|
libgee,
|
|
gettext,
|
|
gnome-settings-daemon,
|
|
granite7,
|
|
gsettings-desktop-schemas,
|
|
gtk4,
|
|
libxml2,
|
|
libgnomekbd,
|
|
libxklavier,
|
|
ibus,
|
|
onboard,
|
|
switchboard,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "switchboard-plug-keyboard";
|
|
version = "8.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elementary";
|
|
repo = "settings-keyboard";
|
|
rev = version;
|
|
sha256 = "sha256-8lgoR7nYqUJfLr9UhqnFJWw9x9l97RxgIkAwodHgrzI=";
|
|
};
|
|
|
|
patches = [
|
|
# This will try to install packages with apt.
|
|
# https://github.com/elementary/settings-keyboard/issues/324
|
|
./hide-install-unlisted-engines-button.patch
|
|
|
|
(replaceVars ./fix-paths.patch {
|
|
inherit onboard libgnomekbd;
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
gettext # msgfmt
|
|
libxml2
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala
|
|
];
|
|
|
|
buildInputs = [
|
|
elementary-settings-daemon # io.elementary.settings-daemon.applications
|
|
gnome-settings-daemon # media-keys
|
|
granite7
|
|
gsettings-desktop-schemas
|
|
gtk4
|
|
ibus
|
|
libadwaita
|
|
libgee
|
|
libxklavier
|
|
switchboard
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Switchboard Keyboard Plug";
|
|
homepage = "https://github.com/elementary/settings-keyboard";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
teams = [ teams.pantheon ];
|
|
};
|
|
}
|