diff options
author | Charlotte Van Petegem <charlotte@vanpetegem.me> | 2023-08-19 15:25:54 +0200 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-09-16 09:03:47 +0000 |
commit | 7599e9007c618a867a97306eef3d6f7b1a401a75 (patch) | |
tree | 25b55c6c977bb81ab52fb8da7de748f6c3f74779 /pkgs/applications/networking/remote/xrdp/default.nix | |
parent | 8e051ccc048c472bfa10deadc8aeac6b1b88e41c (diff) |
xrdp: use patched xrdp sources when building xorgxrdp
Diffstat (limited to 'pkgs/applications/networking/remote/xrdp/default.nix')
-rw-r--r-- | pkgs/applications/networking/remote/xrdp/default.nix | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/pkgs/applications/networking/remote/xrdp/default.nix b/pkgs/applications/networking/remote/xrdp/default.nix index c440b9e5a76ef..e9f21dc9e6899 100644 --- a/pkgs/applications/networking/remote/xrdp/default.nix +++ b/pkgs/applications/networking/remote/xrdp/default.nix @@ -1,6 +1,19 @@ -{ lib, stdenv, fetchFromGitHub, pkg-config, which, perl, autoconf, automake, libtool, openssl, systemd, pam, fuse, libjpeg, libopus, nasm, xorg }: +{ lib, stdenv, fetchFromGitHub, applyPatches, pkg-config, which, perl, autoconf, automake, libtool, openssl, systemd, pam, fuse, libjpeg, libopus, nasm, xorg }: let + version = "0.9.23"; + patchedXrdpSrc = applyPatches { + patches = [ ./dynamic_config.patch ]; + name = "xrdp-patched-${version}"; + src = fetchFromGitHub { + owner = "neutrinolabs"; + repo = "xrdp"; + rev = "v${version}"; + fetchSubmodules = true; + hash = "sha256-8gAP4wOqSmar8JhKRt4qRRwh23coIn0Q8Tt9ClHQSt8="; + }; + }; + xorgxrdp = stdenv.mkDerivation rec { pname = "xorgxrdp"; version = "0.9.19"; @@ -28,29 +41,20 @@ let preConfigure = "./bootstrap"; - configureFlags = [ "XRDP_CFLAGS=-I${xrdp.src}/common" ]; + configureFlags = [ "XRDP_CFLAGS=-I${patchedXrdpSrc}/common" ]; enableParallelBuilding = true; }; - xrdp = stdenv.mkDerivation rec { - version = "0.9.23"; + inherit version; pname = "xrdp"; - src = fetchFromGitHub { - owner = "neutrinolabs"; - repo = "xrdp"; - rev = "v${version}"; - fetchSubmodules = true; - hash = "sha256-14qsRfLn+26rm+vyMmOtaBEs8mWfSTIsIVseSC2FjXc="; - }; + src = patchedXrdpSrc; nativeBuildInputs = [ pkg-config autoconf automake which libtool nasm perl ]; buildInputs = [ openssl systemd pam fuse libjpeg libopus xorg.libX11 xorg.libXfixes xorg.libXrandr ]; - patches = [ ./dynamic_config.patch ]; - postPatch = '' substituteInPlace sesman/xauth.c --replace "xauth -q" "${xorg.xauth}/bin/xauth -q" ''; |