# -rw-r--r-- 1.6 KiB View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
(define-public inspircd
  (package
    (name "inspircd")
    (version "3.7.0")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/inspircd/inspircd")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32
         "1npzp23c3ac7m1grkm39i1asj04rs4i0jwf5w0c0j0hmnwslnz7a"))))
    (build-system gnu-build-system)
    (arguments
     `(#:configure-flags (list "--enable-extras=m_ldap.cpp")
       #:phases
       (modify-phases %standard-phases
         (replace 'configure
           (lambda* (#:key inputs outputs configure-flags #:allow-other-keys)
             (let ((out (assoc-ref outputs "out")))
               (apply invoke "./configure"
                      (string-append "--prefix=" out)
                      configure-flags))
             #t))
         (replace 'check
           (lambda* (#:key inputs outputs #:allow-other-keys)
             (invoke "./tools/test-build")
             #t)))))
    ;; NOTE: More dependencies need to be added for full
    ;; module support.
    (native-inputs
     `(("gnutls" ,gnutls)
       ("libgcrypt" ,libgcrypt)
       ("mbedtls-apache" ,mbedtls-apache)
       ("openldap" ,openldap)
       ("pcre" ,pcre)
       ("perl" ,perl)
       ("pkg-config" ,pkg-config)
       ("re2" ,re2)
       ("sqlite" ,sqlite)))
    (synopsis "Modular IRC server written in C++")
    (description "InspIRCd is a modular Internet Relay Chat
server written in C++ for Unix-like operating systems.")
    (home-page "https://www.inspircd.org/")
    (license license:gpl2)))