fix warnings: remove xdg-desktop-portal patch; fix mautrix-meta enable logic
This commit is contained in:
@@ -26,31 +26,7 @@ in
|
|||||||
sane.programs.xdg-desktop-portal = {
|
sane.programs.xdg-desktop-portal = {
|
||||||
# rmDbusServices: because we care about ordering with the rest of the desktop, and don't want something else to auto-start this.
|
# rmDbusServices: because we care about ordering with the rest of the desktop, and don't want something else to auto-start this.
|
||||||
packageUnwrapped = pkgs.rmDbusServicesInPlace (
|
packageUnwrapped = pkgs.rmDbusServicesInPlace (
|
||||||
(pkgs.xdg-desktop-portal.overrideAttrs (upstream: let
|
pkgs.xdg-desktop-portal.overrideAttrs (upstream: {
|
||||||
useOwnSrc = upstream.version == "1.18.2";
|
|
||||||
in lib.warnIf (!useOwnSrc) "xdg-desktop-portal package pin is outdated" lib.optionalAttrs useOwnSrc {
|
|
||||||
# use a nightly version to fix a crash observced with moby + mpv + alsa
|
|
||||||
# fixed presumably by 1e15771665c8a9c3645d101c749e192ada95ab2c
|
|
||||||
# GLib-GObject-CRITICAL **: 06:09:34.061: g_object_ref: assertion '!object_already_finalized' failed
|
|
||||||
# active task has backtrace: close_requests_in_thread_func -> g_mutex_lock -> __aarch64_cas4_acq_rel
|
|
||||||
version = "1.18.2-unstable-2024-03-11";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "flatpak";
|
|
||||||
repo = "xdg-desktop-portal";
|
|
||||||
rev = "9423046dfa0a1488ce069f377c26a70034bb42b9";
|
|
||||||
hash = "sha256-VGCJ1CyxaDyg2X3Pcnf+83ZXEiQpAqFvkvjoxd678t4=";
|
|
||||||
};
|
|
||||||
mesonFlags = upstream.mesonFlags ++ [
|
|
||||||
"-Ddocumentation=disabled" # post 2023-11-19, docs require Sphinx, which i don't understand
|
|
||||||
];
|
|
||||||
nativeBuildInputs = upstream.nativeBuildInputs ++ [
|
|
||||||
pkgs.buildPackages.python3
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = (upstream.postPatch or "") + ''
|
|
||||||
patchShebangs --build src/generate-method-info.py
|
|
||||||
'';
|
|
||||||
})).overrideAttrs (upstream: {
|
|
||||||
postPatch = (upstream.postPatch or "") + ''
|
postPatch = (upstream.postPatch or "") + ''
|
||||||
# wherever we have a default mime association, don't prompt the user to choose an app.
|
# wherever we have a default mime association, don't prompt the user to choose an app.
|
||||||
# tracking issues about exposing this formally:
|
# tracking issues about exposing this formally:
|
||||||
|
@@ -32,6 +32,13 @@ in [
|
|||||||
# etc, where "date" is like "20240228181608"
|
# etc, where "date" is like "20240228181608"
|
||||||
# and can be found with `nix-repl > :lf . > lastModifiedDate`
|
# and can be found with `nix-repl > :lf . > lastModifiedDate`
|
||||||
|
|
||||||
|
(fetchpatch' {
|
||||||
|
prUrl = "https://github.com/NixOS/nixpkgs/pull/301919";
|
||||||
|
saneCommit = "5468e6802aa060dee755b0019a612f605270d90d";
|
||||||
|
title = "nixos/mautrix-meta: fix lax enable check";
|
||||||
|
hash = "sha256-e5Yf/HzP0tfY6fuo6A8XrYvAwZOrQCIfRqPBcX+Tfg4=";
|
||||||
|
})
|
||||||
|
|
||||||
(fetchpatch' {
|
(fetchpatch' {
|
||||||
prUrl = "https://github.com/NixOS/nixpkgs/pull/298001";
|
prUrl = "https://github.com/NixOS/nixpkgs/pull/298001";
|
||||||
saneCommit = "d599839060400762a67d2c01d15b102ffe75e703";
|
saneCommit = "d599839060400762a67d2c01d15b102ffe75e703";
|
||||||
|
Reference in New Issue
Block a user