{ lib, stdenv , fetchFromGitHub , nix-update-script , pantheon , fetchpatch , substituteAll , meson , ninja , pkg-config , vala , libgee , granite , gtk3 , libxml2 , libgnomekbd , libxklavier , xorg , ibus , switchboard }: stdenv.mkDerivation rec { pname = "switchboard-plug-keyboard"; version = "2.4.1"; src = fetchFromGitHub { owner = "elementary"; repo = pname; rev = version; sha256 = "sha256-iuv5NZ7v+rXyFsKB/PvGa/7hm9MIV8E6JnTzEGROlhM="; }; patches = [ ./0001-Remove-Install-Unlisted-Engines-function.patch ]; passthru = { updateScript = nix-update-script { attrPath = "pantheon.${pname}"; }; }; nativeBuildInputs = [ libxml2 meson ninja pkg-config vala ]; buildInputs = [ granite gtk3 ibus libgee libgnomekbd libxklavier switchboard ]; meta = with lib; { description = "Switchboard Keyboard Plug"; homepage = "https://github.com/elementary/switchboard-plug-keyboard"; license = licenses.gpl2Plus; platforms = platforms.linux; maintainers = pantheon.maintainers; }; }