gnu: Add krdp.

* gnu/packages/kde-plasma.scm (krdp): New variable.

Change-Id: I3bbd44ffd4f2ad512542a2f1afd7a4c9f6ec8ad1
This commit is contained in:
Zheng Junjie 2024-07-06 16:46:25 +08:00
parent df1825f26c
commit 467e3a92c1
No known key found for this signature in database
GPG key ID: 3B5AA993E1A2DFF0

View file

@ -75,6 +75,7 @@ (define-module (gnu packages kde-plasma)
#:use-module (gnu packages python)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages package-management) ; flatpak
#:use-module (gnu packages rdesktop)
#:use-module (gnu packages unicode)
#:use-module (gnu packages video)
#:use-module (gnu packages vpn)
@ -88,6 +89,8 @@ (define-module (gnu packages kde-plasma)
#:use-module (gnu packages base)
#:use-module (gnu packages gps)
#:use-module (gnu packages web)
#:use-module (gnu packages tls)
#:use-module (gnu packages xml)
#:use-module (gnu packages opencl))
(define-public bluedevil
@ -395,6 +398,57 @@ (define-public kactivitymanagerd
(home-page "https://invent.kde.org/plasma/kactivitymanagerd")
(license (list license:gpl2 license:gpl3))))
(define-public krdp
(package
(name "krdp")
(version "6.1.2")
(source (origin
(method url-fetch)
(uri (string-append "mirror://kde/stable/plasma/"
version "/" name "-"
version ".tar.xz"))
(sha256
(base32
"0xp1zi51fpw9zcyry6g8qrm7k94pbi6kw3d8dakdnq5qrkcsvc8g"))))
(build-system qt-build-system)
(arguments (list #:qtbase qtbase
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'hardcode-openssl
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "src/kcm/kcmkrdpserver.cpp"
(("\"openssl\"")
(string-append
"\""
(search-input-file
inputs "/bin/openssl")
"\""))))))))
(native-inputs (list extra-cmake-modules
pkg-config
;; for wayland-scanner
wayland))
(inputs (list
kconfig
kdbusaddons
kcmutils
ki18n
kcoreaddons
kstatusnotifieritem
kpipewire
openssl
plasma-wayland-protocols
freerdp
qtwayland
qtdeclarative
qtkeychain-qt6
wayland-protocols
wayland))
(synopsis "Library and examples for creating an RDP server")
(description "This package provides a library and examples for creating an
RDP server.")
(home-page "https://invent.kde.org/plasma/krdp")
(license license:lgpl2.0+)))
(define-public kde-gtk-config
(package
(name "kde-gtk-config")