cross: fix swaynotificationcenter compilation

This commit is contained in:
Colin 2023-09-06 09:56:46 +00:00
parent f392c0c02b
commit b763009821

View File

@ -1776,6 +1776,36 @@ in {
# ;
# };
swaynotificationcenter = prev.swaynotificationcenter.overrideAttrs (upstream: {
# pkg-config needed to find scdoc
# depsBuildBuild = (upstream.depsBuildBuild or []) ++ [ final.pkg-config ];
mesonFlags = (upstream.mesonFlags or []) ++ [
# fixes "[can't find scdoc]"
"-Dman-pages=false"
# for "error: Package `libpulse' not found in specified Vala API directories or GObject-Introspection GIR directories"
# XXX: pulse-audio meson_option not available in v0.9.0
"-Dpulse-audio=false"
];
patches = (upstream.patches or []) ++ [
# patches merged after v0.9.0, needed for `-Dpulse-audio=false`
(final.fetchpatch2 {
name = "Added volume and backlight widgets to MAN 5 page";
url = "https://github.com/ErikReider/SwayNotificationCenter/commit/ee456bab382246f4e35616dd1acb147e65369b66.patch";
hash = "sha256-9O6z69UsduRxe4+hzYWQC+xQrIX+CKHd1Tc3Tc8GxBk=";
})
(final.fetchpatch2 {
name = ''Added "relative-timestamps" config to switch between "25 minutes ago" and "2023-06-25T20:05:27-07" (#286)'';
url = "https://github.com/ErikReider/SwayNotificationCenter/commit/9bac0d09af4a914f22755f31798f2f88e3e8f833.patch";
hash = "sha256-8PZQgINTYgp3oriZh6F+Nz8x4bAQ/BKHZXkqKKwRFdw=";
})
(final.fetchpatch2 {
name = "Add meson_option to build without PulseAudio Widget (#297)";
url = "https://github.com/ErikReider/SwayNotificationCenter/commit/90cde83bde93bf5d2c14d26345ffbb75963da70c.patch";
hash = "sha256-O86iMWMS28fxEodm3Yw24sMGc1wwnegg2+ZUhIlqCAc=";
})
];
});
# sysprof = (
# # fixes: "src/meson.build:12:2: ERROR: Program 'gdbus-codegen' not found or not executable"
# # 2023/07/27: upstreaming is blocked on p11-kit cross compilation