2019-12-08 05:28:47 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, libgnomekbd
|
|
|
|
, gdk-pixbuf
|
|
|
|
, cairo
|
|
|
|
, xorg
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, python3
|
|
|
|
, stdenv
|
|
|
|
, vala
|
|
|
|
, wrapGAppsHook
|
|
|
|
, inxi
|
|
|
|
, mate
|
2020-09-05 23:04:25 +01:00
|
|
|
, dbus
|
|
|
|
, libdbusmenu-gtk3
|
2019-12-08 05:28:47 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xapps";
|
2020-09-05 23:04:25 +01:00
|
|
|
version = "1.8.9";
|
2019-12-08 05:28:47 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2020-09-05 23:04:25 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/linuxmint/xapp/pull/110/commits/208563d4e2bbcfbeb4425d05f649867065c37615.patch";
|
|
|
|
sha256 = "0brqndfgawhayrm36cjh6fkff274729jivjq3h5jx93lprvl2zih";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-12-08 05:28:47 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-09-05 23:04:25 +01:00
|
|
|
sha256 = "01jx7612p0c0pi0r7fn5g08s6zjfmq1gfm5hi0fkzl0fxf2cx7a7";
|
2019-12-08 05:28:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# TODO: https://github.com/NixOS/nixpkgs/issues/36468
|
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-I${glib.dev}/include/gio-unix-2.0"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-02-10 23:20:58 +00:00
|
|
|
gobject-introspection
|
2019-12-08 05:28:47 +00:00
|
|
|
(python3.withPackages(ps: with ps; [
|
|
|
|
pygobject3
|
|
|
|
setproctitle # mate applet
|
|
|
|
]))
|
|
|
|
libgnomekbd
|
|
|
|
gdk-pixbuf
|
|
|
|
xorg.libxkbfile
|
|
|
|
python3.pkgs.pygobject3 # for .pc file
|
|
|
|
mate.mate-panel # for gobject-introspection
|
2020-09-05 23:04:25 +01: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 \
|
|
|
|
libxapp/g-codegen.py \
|
2020-09-05 23:04:25 +01:00
|
|
|
meson-scripts/g-codegen.py \
|
2019-12-08 05:28:47 +00: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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/linuxmint/xapps";
|
|
|
|
description = "Cross-desktop libraries and common resources";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
2020-09-05 23:40:47 +01:00
|
|
|
maintainers = teams.cinnamon.members;
|
2019-12-08 05:28:47 +00:00
|
|
|
};
|
|
|
|
}
|