nixpkgs/pkgs/desktops/cinnamon/xapps/default.nix

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

106 lines
2.2 KiB
Nix
Raw Normal View History

2019-12-08 06:28:47 +01:00
{ fetchFromGitHub
2022-07-17 17:06:27 +02:00
, fetchpatch
2019-12-08 06:28:47 +01:00
, glib
, gobject-introspection
, gtk3
, libgnomekbd
, gdk-pixbuf
, cairo
, xorg
, meson
, ninja
2021-01-17 03:21:50 +01:00
, pkg-config
2019-12-08 06:28:47 +01:00
, python3
2021-11-29 17:34:50 +01:00
, lib
, stdenv
2019-12-08 06:28:47 +01:00
, vala
, wrapGAppsHook
, inxi
, mate
2020-09-06 00:04:25 +02:00
, dbus
, libdbusmenu-gtk3
2019-12-08 06:28:47 +01:00
}:
stdenv.mkDerivation rec {
pname = "xapps";
2022-07-17 17:06:27 +02:00
version = "2.2.14";
2019-12-08 06:28:47 +01:00
outputs = [ "out" "dev" ];
2022-07-17 17:06:27 +02:00
patches = [
# Add missing gio-unix-2.0 dependency, can be removed on next update
# https://github.com/linuxmint/xapp/pull/156
(fetchpatch {
url = "https://github.com/linuxmint/xapp/commit/052081f75d1c1212aeb6a913772723c81607bcb3.patch";
sha256 = "sha256-VL70Y1FIa7lQ/zKjEx0GhaU1QRu4z6Yu400/bDbgZgM=";
})
];
2019-12-08 06:28:47 +01:00
src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
2022-07-17 17:06:27 +02:00
hash = "sha256-BebsS7y/hRQSc4rYOIWJ+sSJ5fLZaCpNAE48JnviUUc=";
2019-12-08 06:28:47 +01:00
};
nativeBuildInputs = [
meson
ninja
2021-01-17 03:21:50 +01:00
pkg-config
2019-12-08 06:28:47 +01:00
python3
vala
wrapGAppsHook
];
buildInputs = [
gobject-introspection
2021-11-29 17:34:50 +01:00
(python3.withPackages (ps: with ps; [
2019-12-08 06:28:47 +01:00
pygobject3
setproctitle # mate applet
]))
libgnomekbd
gdk-pixbuf
xorg.libxkbfile
python3.pkgs.pygobject3 # for .pc file
mate.mate-panel # for gobject-introspection
2020-09-06 00:04:25 +02:00
dbus
libdbusmenu-gtk3
2019-12-08 06:28:47 +01: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 \
libxapp/g-codegen.py \
2020-09-06 00:04:25 +02:00
meson-scripts/g-codegen.py \
2019-12-08 06:28:47 +01:00
schemas/meson_install_schemas.py
# 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
2021-01-26 21:50:30 +01:00
# Patch gtk3 module target dir
substituteInPlace libxapp/meson.build \
--replace "gtk3_dep.get_pkgconfig_variable('libdir')" "'$out'"
2019-12-08 06:28:47 +01:00
'';
meta = with lib; {
2019-12-08 06:28:47 +01:00
homepage = "https://github.com/linuxmint/xapps";
description = "Cross-desktop libraries and common resources";
license = licenses.lgpl3;
platforms = platforms.linux;
maintainers = teams.cinnamon.members;
2019-12-08 06:28:47 +01:00
};
}