From 9182bf4d85266cdf5476b81b57ab080fbab0369f Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Fri, 16 May 2025 23:05:18 +0200 Subject: [PATCH] freerdp: 3.15.0 -> 3.15.0-unstable-2025-05-16 Includes a patch from https://github.com/FreeRDP/FreeRDP/pull/11439 Fixing the GCC warnings and make guacamole-server compiling successfully. --- pkgs/by-name/fr/freerdp/package.nix | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/fr/freerdp/package.nix b/pkgs/by-name/fr/freerdp/package.nix index e6bbb2fed073..340e0e1704eb 100644 --- a/pkgs/by-name/fr/freerdp/package.nix +++ b/pkgs/by-name/fr/freerdp/package.nix @@ -2,7 +2,9 @@ stdenv, lib, fetchFromGitHub, + fetchpatch2, cmake, + writableTmpDirAsHomeHook, docbook-xsl-nons, libxslt, pkg-config, @@ -62,7 +64,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "freerdp"; - version = "3.15.0"; + version = "3.15.0-unstable-2025-05-16"; src = fetchFromGitHub { owner = "FreeRDP"; @@ -71,10 +73,17 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-xz1vP58hElXe/jLVrJOSpXcbqShBV7LHRpzqPLa2fDU="; }; + patches = [ + # Patch from https://github.com/FreeRDP/FreeRDP/pull/11439 + # To be removed at the next release + (fetchpatch2 { + url = "https://github.com/FreeRDP/FreeRDP/commit/67fabc34dce7aa3543e152f78cb4ea88ac9d1244.patch"; + hash = "sha256-kYCEjH1kXZJbg2sN6YNhh+y19HTTCaC7neof8DTKZ/8="; + }) + ]; + postPatch = '' - export HOME=$TMP - # skip NIB file generation on darwin substituteInPlace "client/Mac/CMakeLists.txt" "client/Mac/cli/CMakeLists.txt" \ --replace-fail "if(NOT IS_XCODE)" "if(FALSE)" @@ -100,6 +109,7 @@ stdenv.mkDerivation (finalAttrs: { docbook-xsl-nons pkg-config wayland-scanner + writableTmpDirAsHomeHook ]; buildInputs = @@ -198,15 +208,15 @@ stdenv.mkDerivation (finalAttrs: { inherit gnome-remote-desktop; }; - meta = with lib; { + meta = { description = "Remote Desktop Protocol Client"; longDescription = '' FreeRDP is a client-side implementation of the Remote Desktop Protocol (RDP) following the Microsoft Open Specifications. ''; homepage = "https://www.freerdp.com/"; - license = licenses.asl20; - maintainers = with maintainers; [ peterhoeg ]; - platforms = platforms.unix; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ peterhoeg ]; + platforms = lib.platforms.unix; }; })