deepin.dtk6gui: fix missing #include

This happens probably after qt6: 6.9.0 -> 6.9.1,
though I've only confirmed the issue on 25.05 so far:
https://hydra.nixos.org/build/301582029/nixlog/1/tail
This commit is contained in:
Vladimír Čunát
2025-07-03 08:23:35 +02:00
parent eed40c4800
commit 8f8a9bbeb7
@@ -35,6 +35,8 @@ stdenv.mkDerivation (finalAttrs: {
postPatch = ''
substituteInPlace src/util/dsvgrenderer.cpp \
--replace-fail 'QLibrary("rsvg-2", "2")' 'QLibrary("${lib.getLib librsvg}/lib/librsvg-2.so")'
sed '1i#include <pwd.h>' \
-i 'src/kernel/dguiapplicationhelper.cpp'
'';
nativeBuildInputs = [