From 794e8880b98b3639ef409e1cef723c05c79c4695 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <rekado@elephly.net>
Date: Mon, 24 Apr 2023 09:56:32 +0200
Subject: gnu: openldap-for-linphone: Hide it.

We don't want this to show up when searching for "openldap".

* gnu/packages/openldap.scm (openldap-for-linphone): Wrap in HIDDEN-PACKAGE
and add a comment.
---
 gnu/packages/openldap.scm | 29 ++++++++++++++++-------------
 1 file changed, 16 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/openldap.scm b/gnu/packages/openldap.scm
index 2dcda009e6..92480b13f8 100644
--- a/gnu/packages/openldap.scm
+++ b/gnu/packages/openldap.scm
@@ -113,20 +113,23 @@
     (license openldap2.8)
     (home-page "https://www.openldap.org/")))
 
+;; This is an incompatible fork of openldap that adds types needed for
+;; liblinphone.
 (define-public openldap-for-linphone
-  (package
-    (inherit openldap)
-    (name "openldap")
-    (version "2.6.4")
-    (source (origin
-              (method git-fetch)
-              (uri (git-reference
-                    (url "https://gitlab.linphone.org/BC/public/external/openldap/")
-                    (commit "8a885896a3fb88098d970ab96316c0b7f18367b8")))
-              (file-name (git-file-name name version))
-              (sha256
-               (base32
-                "1yd3cnngr5z3nymnml8fynspxgdzap7y7glp601nbkdj67wyg0k8"))))))
+  (hidden-package
+   (package
+     (inherit openldap)
+     (name "openldap")
+     (version "2.6.4")
+     (source (origin
+               (method git-fetch)
+               (uri (git-reference
+                     (url "https://gitlab.linphone.org/BC/public/external/openldap/")
+                     (commit "8a885896a3fb88098d970ab96316c0b7f18367b8")))
+               (file-name (git-file-name name version))
+               (sha256
+                (base32
+                 "1yd3cnngr5z3nymnml8fynspxgdzap7y7glp601nbkdj67wyg0k8")))))))
 
 (define-public nss-pam-ldapd
   (package
-- 
cgit 1.4.1