xpra: fix xdg-open path

This commit is contained in:
John Chadwick
2024-07-02 19:31:22 -04:00
parent 3ed90641fd
commit 2be8451d1a
+8
View File
@@ -29,11 +29,13 @@
, pango
, pulseaudio
, python3
, stdenv
, util-linux
, which
, x264
, x265
, xauth
, xdg-utils
, xorg
, xorgserver
}:
@@ -84,6 +86,12 @@ in buildPythonApplication rec {
./fix-122159.patch # https://github.com/NixOS/nixpkgs/issues/122159
];
# Note: xposix is renamed to posix in v5.
postPatch = lib.optionalString stdenv.isLinux ''
substituteInPlace xpra/platform/xposix/features.py \
--replace-fail "/usr/bin/xdg-open" "${xdg-utils}/bin/xdg-open"
'';
INCLUDE_DIRS = "${pam}/include";
nativeBuildInputs = [