2022-08-18 00:49:31 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, gobject-introspection
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, libxklavier
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gnome
|
|
|
|
}:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-12-25 22:54:17 +00:00
|
|
|
pname = "libgnomekbd";
|
2022-09-04 18:56:51 +00:00
|
|
|
version = "3.28.1";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
2020-01-16 14:49:37 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2018-02-25 20:07:20 +00:00
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2022-09-04 18:56:51 +00:00
|
|
|
sha256 = "ItxZVm1zwAZTUPWpc0DmLsx7CMTfGRg4BLuL4kyP6HA=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2019-12-15 03:18:12 +00:00
|
|
|
nativeBuildInputs = [
|
2022-08-18 00:49:31 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2019-12-15 03:18:12 +00:00
|
|
|
wrapGAppsHook
|
2022-08-07 03:08:14 +00:00
|
|
|
glib
|
|
|
|
gobject-introspection
|
2019-12-15 03:18:12 +00:00
|
|
|
];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2019-12-15 03:18:12 +00:00
|
|
|
# Requires in libgnomekbd.pc
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gtk3
|
|
|
|
libxklavier
|
|
|
|
glib
|
|
|
|
];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2022-08-18 00:49:31 +00:00
|
|
|
postInstall = ''
|
|
|
|
# Missing post-install script.
|
|
|
|
glib-compile-schemas "$out/share/glib-2.0/schemas"
|
2022-08-07 03:08:14 +00:00
|
|
|
'';
|
|
|
|
|
2021-03-20 23:57:24 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2021-03-20 23:57:24 +00:00
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "odd-unstable";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2016-09-18 19:35:23 +00:00
|
|
|
description = "Keyboard management library";
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 19:35:23 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|