nixpkgs/pkgs/desktops/pantheon/apps/switchboard-plugs/keyboard/default.nix

76 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv
, fetchFromGitHub
, pantheon
, fetchpatch
, substituteAll
, meson
, ninja
, pkgconfig
, vala
, libgee
, granite
, gtk3
, libxml2
, libgnomekbd
, libxklavier
, xorg
, switchboard
}:
2018-08-20 13:31:18 -07:00
stdenv.mkDerivation rec {
pname = "switchboard-plug-keyboard";
version = "2.3.5";
2018-08-20 13:31:18 -07:00
src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = version;
sha256 = "17iijb7imxw5zv7vkrbc1vsp87k900yqgyv7ycz1gw37xb4klsyp";
2018-08-20 13:31:18 -07:00
};
passthru = {
updateScript = pantheon.updateScript {
attrPath = "pantheon.${pname}";
2018-08-20 13:31:18 -07:00
};
};
nativeBuildInputs = [
libxml2
meson
ninja
pkgconfig
vala
];
buildInputs = [
granite
gtk3
libgee
libgnomekbd
libxklavier
switchboard
];
patches = [
(substituteAll {
src = ./xkb.patch;
config = "${xorg.xkeyboardconfig}/share/X11/xkb/rules/evdev.xml";
})
# Fix build with latest vala.
(fetchpatch {
url = "https://github.com/elementary/switchboard-plug-keyboard/commit/28fa960f607f0b1d67f2864965a079bdfc23e3a8.patch";
sha256 = "0121qcg8n7gkz7gpwrxc1cx0nnypj02zy2jmp3cks5r9sc0yi0hw";
})
2018-08-20 13:31:18 -07:00
];
PKG_CONFIG_SWITCHBOARD_2_0_PLUGSDIR = "${placeholder "out"}/lib/switchboard";
2018-08-20 13:31:18 -07:00
meta = with stdenv.lib; {
description = "Switchboard Keyboard Plug";
homepage = https://github.com/elementary/switchboard-plug-keyboard;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = pantheon.maintainers;
};
}