nixpkgs/pkgs/by-name/xa/xapp/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

101 lines
2.1 KiB
Nix
Raw Normal View History

2019-12-08 05:28:47 +00:00
{ fetchFromGitHub
, glib
, gobject-introspection
, gtk3
, libgnomekbd
, gdk-pixbuf
, cairo
, xorg
, meson
, ninja
2021-01-17 02:21:50 +00:00
, pkg-config
2019-12-08 05:28:47 +00:00
, python3
2021-11-29 16:34:50 +00:00
, lib
, stdenv
2019-12-08 05:28:47 +00:00
, vala
, wrapGAppsHook3
, file
2019-12-08 05:28:47 +00:00
, inxi
, mate
2020-09-05 22:04:25 +00:00
, dbus
, libdbusmenu-gtk3
2019-12-08 05:28:47 +00:00
}:
stdenv.mkDerivation rec {
pname = "xapp";
2024-12-05 12:39:57 +00:00
version = "2.8.7";
2019-12-08 05:28:47 +00:00
outputs = [ "out" "dev" ];
src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
2024-12-05 12:39:57 +00:00
hash = "sha256-PMTsaY04rML2vmVIOWArYqWmGvpTtA1DpFw3ZAtu+oU=";
2019-12-08 05:28:47 +00:00
};
# Recommended by upstream, which enables the build of xapp-debug.
# https://github.com/linuxmint/xapp/issues/169#issuecomment-1574962071
mesonBuildType = "debugoptimized";
2019-12-08 05:28:47 +00:00
nativeBuildInputs = [
meson
ninja
2021-01-17 02:21:50 +00:00
pkg-config
2019-12-08 05:28:47 +00:00
python3
vala
wrapGAppsHook3
gobject-introspection
2019-12-08 05:28:47 +00:00
];
buildInputs = [
2021-11-29 16:34:50 +00:00
(python3.withPackages (ps: with ps; [
2019-12-08 05:28:47 +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-05 22:04:25 +00:00
dbus
libdbusmenu-gtk3
2019-12-08 05:28:47 +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
patchShebangs schemas/meson_install_schemas.py
2019-12-08 05:28:47 +00:00
# Used in cinnamon-settings
substituteInPlace scripts/upload-system-info \
--replace-fail "'/usr/bin/pastebin'" "'$out/bin/pastebin'" \
--replace-fail "'inxi'" "'${inxi}/bin/inxi'"
# Used in x-d-p-xapp
substituteInPlace scripts/xfce4-set-wallpaper \
--replace-fail "file --mime-type" "${file}/bin/file --mime-type"
2019-12-08 05:28:47 +00:00
'';
# Fix gtk3 module target dir. Proper upstream solution should be using define_variable.
env.PKG_CONFIG_GTK__3_0_LIBDIR = "${placeholder "out"}/lib";
meta = with lib; {
homepage = "https://github.com/linuxmint/xapp";
2019-12-08 05:28:47 +00:00
description = "Cross-desktop libraries and common resources";
license = licenses.lgpl3;
platforms = platforms.linux;
maintainers = teams.cinnamon.members;
2019-12-08 05:28:47 +00:00
};
}