mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
ebc6b67250
Vala now has the setup-hook we need. [0]
[0]: 79ca7f4cb4
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, pantheon, substituteAll, meson, ninja, pkgconfig
|
|
, vala, libgee, granite, gtk3, libxml2, libgnomekbd, libxklavier, xorg, switchboard }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "switchboard-plug-keyboard";
|
|
version = "2.3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elementary";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "17iijb7imxw5zv7vkrbc1vsp87k900yqgyv7ycz1gw37xb4klsyp";
|
|
};
|
|
|
|
passthru = {
|
|
updateScript = pantheon.updateScript {
|
|
repoName = pname;
|
|
};
|
|
};
|
|
|
|
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";
|
|
})
|
|
];
|
|
|
|
PKG_CONFIG_SWITCHBOARD_2_0_PLUGSDIR = "${placeholder ''out''}/lib/switchboard";
|
|
|
|
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;
|
|
};
|
|
}
|