2020-04-24 23:36:52 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, libgnomekbd
|
|
|
|
, gdk-pixbuf
|
|
|
|
, cairo
|
|
|
|
, xorg
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, python3
|
2021-12-06 16:07:01 +00:00
|
|
|
, lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, vala
|
|
|
|
, wrapGAppsHook
|
|
|
|
, inxi
|
|
|
|
, mate
|
2020-09-25 04:45:31 +00:00
|
|
|
, dbus
|
|
|
|
, libdbusmenu-gtk3
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-08-12 12:06:08 +00:00
|
|
|
pname = "xapp";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.8.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-JsaH74h36FTIYVKiULmisK/RFGMZ79rhr7sacFnpFas=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
# Recommended by upstream, which enables the build of xapp-debug.
|
|
|
|
# https://github.com/linuxmint/xapp/issues/169#issuecomment-1574962071
|
|
|
|
mesonBuildType = "debugoptimized";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
2023-08-10 07:59:29 +00:00
|
|
|
gobject-introspection
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
(python3.withPackages (ps: with ps; [
|
2020-04-24 23:36:52 +00:00
|
|
|
pygobject3
|
|
|
|
setproctitle # mate applet
|
|
|
|
]))
|
|
|
|
libgnomekbd
|
|
|
|
gdk-pixbuf
|
|
|
|
xorg.libxkbfile
|
|
|
|
python3.pkgs.pygobject3 # for .pc file
|
|
|
|
mate.mate-panel # for gobject-introspection
|
2020-09-25 04:45:31 +00:00
|
|
|
dbus
|
|
|
|
libdbusmenu-gtk3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Requires in xapp.pc
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gtk3
|
|
|
|
cairo
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dpy-overrides-dir=${placeholder "out"}/${python3.sitePackages}/gi/overrides"
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x schemas/meson_install_schemas.py # patchShebangs requires executable file
|
2023-07-15 17:15:38 +00:00
|
|
|
patchShebangs schemas/meson_install_schemas.py
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Patch pastebin & inxi location
|
|
|
|
sed "s|/usr/bin/pastebin|$out/bin/pastebin|" -i scripts/upload-system-info
|
|
|
|
sed "s|'inxi'|'${inxi}/bin/inxi'|" -i scripts/upload-system-info
|
|
|
|
'';
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
# Fix gtk3 module target dir. Proper upstream solution should be using define_variable.
|
|
|
|
PKG_CONFIG_GTK__3_0_LIBDIR = "${placeholder "out"}/lib";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-08-12 12:06:08 +00:00
|
|
|
homepage = "https://github.com/linuxmint/xapp";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Cross-desktop libraries and common resources";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = teams.cinnamon.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|