From 3591443080ca8ae4fa775e6ea697f5e1b999a39b Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Sat, 3 Dec 2022 10:32:43 +0100 Subject: [PATCH 2/6] gnu: Add enet-moonlight. * gnu/packages/networking.scm (enet-moonlight): New variable. diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index f5276e330e..27f67c01bf 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -2591,6 +2591,43 @@ (define-public enet (home-page "http://enet.bespin.org") (license license:expat))) +(define-public enet-moonlight + (let ((commit "4cde9cc3dcc5c30775a80da1de87f39f98672a31") + (revision "1")) +(package + (inherit enet) + (name "enet") + (version commit) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cgutman/enet") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "07sr32jy989ja23fwg8bvrq2slgm7bhfw6v3xq7yczbw86c1dndv")))) + (build-system cmake-build-system) + (arguments + '(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'build-share-lib + (lambda* _ + (substitute* "CMakeLists.txt" + (("STATIC") "SHARED")))) + (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) + (copy-recursively (string-append source "/include") include) + (install-file "libenet.so" lib))))))) + (native-inputs + (list pkg-config))))) + (define-public sslh (package (name "sslh") -- 2.38.1