Compare commits

...

6 Commits

Author SHA1 Message Date
790b3f1543 Merge pull request 'Add lnav to base CLI tools' (#51) from ash/add-lnav into main
All checks were successful
CI / check (push) Successful in 3m5s
CI / build-and-cache (push) Successful in 2m29s
Reviewed-on: #51
Reviewed-by: johno <john@ogle.fyi>
2026-03-24 13:32:29 -07:00
Ash
079a3d7a11 Add lnav to base CLI tools
All checks were successful
CI / check (pull_request) Successful in 3m19s
CI / build-and-cache (pull_request) Has been skipped
2026-03-24 13:12:56 -07:00
718d81a88a Merge pull request 'ci: add patched nextcloud-talk-desktop to binary cache' (#49) from ash/cache-talk-desktop into main
Some checks failed
CI / check (push) Failing after 14m52s
CI / build-and-cache (push) Has been cancelled
2026-03-16 09:01:09 -07:00
Ash
827da51214 ci: add patched nextcloud-talk-desktop to binary cache
All checks were successful
CI / check (pull_request) Successful in 2m41s
CI / build-and-cache (pull_request) Has been skipped
Includes the Wayland screen sharing patch (from ash/talk-desktop-wayland-screenshare)
and adds custom-nextcloud-talk-desktop to CI build-and-cache pipeline.
2026-03-16 08:56:40 -07:00
Ash
068f912dc3 Merge branch 'ash/talk-desktop-wayland-screenshare' into ash/cache-talk-desktop 2026-03-16 08:56:14 -07:00
Ash
8f292893a3 feat: patch nextcloud-talk-desktop for Wayland screen sharing
All checks were successful
CI / check (pull_request) Successful in 2m46s
CI / build-and-cache (pull_request) Has been skipped
Patches the Electron asar bundle to inject setDisplayMediaRequestHandler
with useSystemPicker: true, which routes screen capture through the
native PipeWire/xdg-desktop-portal pipeline on Wayland.

Based on upstream draft PR nextcloud/talk-desktop#1022.
Uses the patched version in communication role.
2026-03-16 08:46:16 -07:00
6 changed files with 65 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ jobs:
custom-beads
custom-gastown
custom-perles
custom-nextcloud-talk-desktop
qt-pinned-jellyfin-media-player
qt-pinned-stremio
nix-deck-kernel

View File

@@ -285,6 +285,7 @@
"custom-mcrcon-rbw" = pkgs.custom.mcrcon-rbw;
"custom-tea-rbw" = pkgs.custom.tea-rbw;
"custom-rclone-torbox-setup" = pkgs.custom.rclone-torbox-setup;
"custom-nextcloud-talk-desktop" = pkgs.custom.nextcloud-talk-desktop;
"qt-pinned-jellyfin-media-player" = pkgsQt.jellyfin-media-player;
"qt-pinned-stremio" = pkgsQt.stremio;
# Flake input packages (beads, gastown) - these get version from input rev

View File

@@ -18,6 +18,7 @@ in
htop
killall
less
lnav
ncdu
shellcheck
tmux

View File

@@ -20,7 +20,7 @@ in
pkgs.element-desktop
# Re-enabled in 25.11 after security issues were resolved
pkgs.fluffychat
pkgs.nextcloud-talk-desktop
pkgs.custom.nextcloud-talk-desktop
];
};
}

View File

@@ -6,4 +6,5 @@
mcrcon-rbw = pkgs.callPackage ./mcrcon-rbw {};
rclone-torbox-setup = pkgs.callPackage ./rclone-torbox-setup {};
pi-coding-agent = pkgs.callPackage ./pi-coding-agent {};
nextcloud-talk-desktop = pkgs.callPackage ./nextcloud-talk-desktop {};
}

View File

@@ -0,0 +1,60 @@
# Patched Nextcloud Talk Desktop with Wayland screen sharing support
# Applies the core change from upstream draft PR #1022:
# https://github.com/nextcloud/talk-desktop/pull/1022
#
# Patches the webpack bundle in app.asar to add setDisplayMediaRequestHandler
# with useSystemPicker: true, enabling native PipeWire/portal-based
# screen sharing on Wayland (Sway, Hyprland, etc.)
{ lib
, nextcloud-talk-desktop
, nodejs
, asar
}:
nextcloud-talk-desktop.overrideAttrs (old: {
pname = "nextcloud-talk-desktop-patched";
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ asar nodejs ];
# Patch the asar after the main installPhase creates the output
postFixup = (old.postFixup or "") + ''
echo "Patching app.asar for Wayland screen sharing..."
ASAR_PATH="$out/opt/Nextcloud Talk-linux-x64/resources/app.asar"
WORK=$(mktemp -d)
asar extract "$ASAR_PATH" "$WORK/app"
# In the webpack bundle:
# session = l, desktopCapturer = a, app = n
# We inject setDisplayMediaRequestHandler right after n.whenReady().then((async()=>{
# useSystemPicker: true makes Electron use the native system picker
# (PipeWire/xdg-desktop-portal on Wayland)
node -e "
const fs = require('fs');
const p = '$WORK/app/.webpack/main/index.js';
let c = fs.readFileSync(p, 'utf8');
if (c.includes('setDisplayMediaRequestHandler')) {
console.log('Already patched');
process.exit(0);
}
const marker = 'n.whenReady().then((async()=>{';
const idx = c.indexOf(marker);
if (idx === -1) {
console.error('ERROR: Could not find whenReady marker in webpack bundle');
process.exit(1);
}
// Inject after the marker
const injection = 'l.defaultSession.setDisplayMediaRequestHandler(async(e,t)=>{const s=await a.getSources({types:[\"screen\",\"window\"]});s.length>0?t({video:s[0]}):t({})},{useSystemPicker:!0});';
c = c.slice(0, idx + marker.length) + injection + c.slice(idx + marker.length);
fs.writeFileSync(p, c, 'utf8');
console.log('Successfully patched main bundle for Wayland screen sharing');
"
asar pack "$WORK/app" "$ASAR_PATH"
rm -rf "$WORK"
'';
})