forked from mirrors/nixpkgs
fae325457a
https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/attribute-ordering.md Addressing the formatting now to minimize the Pantheon 7 update PR diff.
78 lines
1.3 KiB
Nix
78 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, nix-update-script
|
|
, substituteAll
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, vala
|
|
, libgee
|
|
, gnome-settings-daemon
|
|
, granite
|
|
, gsettings-desktop-schemas
|
|
, gtk3
|
|
, libhandy
|
|
, libxml2
|
|
, libgnomekbd
|
|
, libxklavier
|
|
, ibus
|
|
, onboard
|
|
, switchboard
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "switchboard-plug-keyboard";
|
|
version = "2.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elementary";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-Bl0T+8upTdBnLs03UIimcAg0LO40KwuMZRNSM+y/3Hc=";
|
|
};
|
|
|
|
patches = [
|
|
./0001-Remove-Install-Unlisted-Engines-function.patch
|
|
(substituteAll {
|
|
src = ./fix-paths.patch;
|
|
inherit ibus onboard;
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
libxml2
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala
|
|
];
|
|
|
|
buildInputs = [
|
|
gnome-settings-daemon # media-keys
|
|
granite
|
|
gsettings-desktop-schemas
|
|
gtk3
|
|
ibus
|
|
libgee
|
|
libgnomekbd
|
|
libhandy
|
|
libxklavier
|
|
switchboard
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script {
|
|
attrPath = "pantheon.${pname}";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Switchboard Keyboard Plug";
|
|
homepage = "https://github.com/elementary/switchboard-plug-keyboard";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = teams.pantheon.members;
|
|
};
|
|
}
|