Skip to content

Commit 06390e1

Browse files
committed
Add libdrm dependency
1 parent 99f0cc9 commit 06390e1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pkgs/applications/networking/remote/xrdp/default.nix

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
, systemd
1313
, pam
1414
, fuse
15+
, libdrm
1516
, libjpeg
1617
, libopus
1718
, nasm
@@ -38,7 +39,7 @@ let
3839

3940
nativeBuildInputs = [ pkg-config autoconf automake which libtool nasm ];
4041

41-
buildInputs = [ xorg.xorgserver ];
42+
buildInputs = [ xorg.xorgserver libdrm ];
4243

4344
postPatch = ''
4445
# patch from Debian, allows to run xrdp daemon under unprivileged user
@@ -50,9 +51,10 @@ let
5051
--replace 'sysconfdir="/etc"' "sysconfdir=$out/etc"
5152
'';
5253

53-
preConfigure = "./bootstrap";
54-
55-
configureFlags = [ "XRDP_CFLAGS=-I${xrdp.src}/common" ];
54+
preConfigure = ''
55+
./bootstrap
56+
export XRDP_CFLAGS="-I${xrdp.src}/common -I${libdrm.dev}/include -I${libdrm.dev}/include/libdrm"
57+
'';
5658

5759
enableParallelBuilding = true;
5860

0 commit comments

Comments
 (0)