Subject: [bug#78551] [PATCH] gnu: Add microsocks.

From: Junker <[email-masked]>
Date: Thu, 22 May 2025 22:02:04 +0700

* gnu/packages/web.scm (microsocks): New variable.

Change-Id: I93fb88842851c883460953e9a361f28a927996ce
---
 gnu/packages/web.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index b43b90ac33..5da232de8f 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -70,6 +70,7 @@
 ;;; Copyright © 2024 Zheng Junjie <[email-masked]>
 ;;; Copyright © 2024, 2025 Artyom V. Poptsov <[email-masked]>
 ;;; Copyright © 2025 Raven Hallsby <[email-masked]>
+;;; Copyright © 2025 Junker <[email-masked]>"
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2198,6 +2199,35 @@ (define-public websockify
 directions.")
     (license license:lgpl3)))
 
+(define-public microsocks
+  (package
+    (name "microsocks")
+    (version "1.0.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/rofl0r/microsocks")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0ffiwlkaylkm2ih7d96qvdy9s9ydqgypczs5k8iwkf5yv617dm74"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list
+      #:tests? #f ;no tests
+      #:make-flags #~(list "prefix=/"
+                           "CC=gcc"
+                           (string-append "DESTDIR=" #$output))
+      #:phases
+      '(modify-phases %standard-phases
+         (delete 'configure))))
+    (home-page "https://github.com/rofl0r/microsocks")
+    (synopsis "Tiny and lightweight SOCKS5 server")
+    (description "Microsocks is a small, efficient SOCKS5 server.")
+    (license license:expat)))
+
 ;; This is a variant of esbuild that builds and installs the nodejs API.
 ;; Eventually, this should probably be merged with the esbuild package.
 (define-public esbuild-node

base-commit: 11bc17c409d77cd1af91e30b5b9f6a73f873a152
-- 
2.49.0