From f8a5b255aff6e28af1f29feccfb45732a219cd6f Mon Sep 17 00:00:00 2001 From: Daniel Hill Date: Fri, 1 Aug 2025 14:39:07 +1200 Subject: [PATCH] pureref: force xcb mode for wayland pureref doesn't ship with a wayland backend and throws and error trying to launch, this allows it to use XWayland in such situations. --- pkgs/by-name/pu/pureref/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/pu/pureref/package.nix b/pkgs/by-name/pu/pureref/package.nix index 069ff4f7e3a3..28f7cb01b497 100644 --- a/pkgs/by-name/pu/pureref/package.nix +++ b/pkgs/by-name/pu/pureref/package.nix @@ -1,6 +1,7 @@ { lib, appimageTools, + makeWrapper, runCommand, curl, gnugrep, @@ -32,11 +33,14 @@ appimageTools.wrapType1 { pname = "pureref"; inherit version; + nativeBuildInputs = [ makeWrapper ]; + src = "${deb}/usr/bin/PureRef"; extraInstallCommands = '' mv $out/bin/pureref $out/bin/PureRef cp -r ${deb}/usr/share $out + wrapProgram $out/bin/PureRef --set QT_QPA_PLATFORM xcb ''; meta = with lib; {