From 7d6d354a153530d950acbe126809653a04963534 Mon Sep 17 00:00:00 2001 From: ~noodlez1232 Date: Tue, 19 Nov 2024 22:46:39 -0800 Subject: [PATCH] cinny-desktop: fix build failure Unfortunately this leads to the loss of the system tray icon and the functionality that comes with that. I was unfortunately unable to figure out why this was the case, but in response, I have removed the dependencies that were included for it. Hopefully somebody more experienced than me can fix it. Fixes #357406 --- pkgs/by-name/ci/cinny-desktop/package.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ci/cinny-desktop/package.nix b/pkgs/by-name/ci/cinny-desktop/package.nix index c62796024db5..f1595df7042d 100644 --- a/pkgs/by-name/ci/cinny-desktop/package.nix +++ b/pkgs/by-name/ci/cinny-desktop/package.nix @@ -8,6 +8,7 @@ cinny, desktop-file-utils, wrapGAppsHook3, + makeBinaryWrapper, pkg-config, openssl, dbus, @@ -47,13 +48,9 @@ rustPlatform.buildRustPackage rec { in '' substituteInPlace tauri.conf.json \ - --replace '"distDir": "../cinny/dist",' '"distDir": "${cinny'}",' + --replace-warn '"distDir": "../cinny/dist",' '"distDir": "${cinny'}",' substituteInPlace tauri.conf.json \ - --replace '"cd cinny && npm run build"' '""' - '' - + lib.optionalString stdenv.hostPlatform.isLinux '' - substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \ - --replace "libayatana-appindicator3.so.1" "${libayatana-appindicator}/lib/libayatana-appindicator3.so.1" + --replace-warn '"cd cinny && npm run build"' '""' ''; postInstall = @@ -67,12 +64,18 @@ rustPlatform.buildRustPackage rec { --set-key="Categories" --set-value="Network;InstantMessaging;" \ $out/share/applications/cinny.desktop ''; + postFixup = lib.optionalString stdenv.hostPlatform.isLinux '' + wrapProgram "$out/bin/cinny" \ + --inherit-argv0 \ + --set-default WEBKIT_DISABLE_DMABUF_RENDERER "1" + ''; nativeBuildInputs = [ wrapGAppsHook3 pkg-config cargo-tauri_1.hook desktop-file-utils + makeBinaryWrapper ]; buildInputs = @@ -83,7 +86,6 @@ rustPlatform.buildRustPackage rec { ] ++ lib.optionals stdenv.hostPlatform.isLinux [ glib-networking - libayatana-appindicator webkitgtk_4_0 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [