From 413514efa6d87236d6f3e26166ac82fc3a85a9dd Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Sat, 3 Dec 2022 10:35:36 +0100 Subject: [PATCH 4/6] gnu: Add moonlight-common. * gnu/packages/games.scm (moonlight-common): New variable. diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 9d79efbe94..131784bc2a 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -5857,6 +5857,50 @@ (define-public bambam colors, pictures, and sounds.") (license license:gpl3+))) +(define-public moonlight-common + (let ((commit "8c55c086d596607041e4394fb62a1bc800b7f37c") + (revision "1")) + (package + (name "moonlight-common") + (version commit) + (source (origin + (method git-fetch) + (uri (git-reference + (url + "https://github.com/moonlight-stream/moonlight-common-c") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0pqm0a2p2sqvazv5gak6gl7d405kaaq6r13l7yhycm0myayqavrp")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f + #:phases (modify-phases %standard-phases + (add-after 'unpack 'use-enet-pkg + (lambda _ + (substitute* "CMakeLists.txt" + (("add_subdirectory\\(enet\\)") + "")))) + (replace 'install + (lambda* (#:key outputs source #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (include (string-append out "/include")) + (lib (string-append out "/lib"))) + (mkdir-p include) + (mkdir-p lib) + (install-file (string-append source + "/src/Limelight.h") + include) + (install-file "libmoonlight-common-c.so" lib))))))) + (native-inputs (list pkg-config)) + (inputs (list qtbase-5 openssl enet-moonlight)) + (synopsis "Core implementation of Nvidia's GameStream protocol") + (description + "This package provides the code GameStream code shared between @code{Moonlight} clients.") + (home-page "https://github.com/moonlight-stream/moonlight-common-c") + (license license:gpl3)))) + (define-public mrrescue (package (name "mrrescue") -- 2.38.1