projects/guix·blob java-team · refs

66 lines · 2.5 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Eric Bavier <[email protected]>
3;;; Copyright © 2021 Efraim Flashner <[email protected]>
4;;;
5;;; This file is part of GNU Guix.
6;;;
7;;; GNU Guix is free software; you can redistribute it and/or modify it
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
12;;; GNU Guix is distributed in the hope that it will be useful, but
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20(define-module (gnu packages serveez)
21 #:use-module (guix packages)
22 #:use-module (guix licenses)
23 #:use-module (guix download)
24 #:use-module (guix build-system gnu)
25 #:use-module (gnu packages)
26 #:use-module (gnu packages compression)
27 #:use-module (gnu packages guile))
28
29(define-public serveez
30 (package
31 (name "serveez")
32 (version "0.3.0")
33 (source
34 (origin
35 (method url-fetch)
36 (uri (string-append "mirror://gnu/serveez/serveez-"
37 version ".tar.lz"))
38 (sha256
39 (base32
40 "0capm8i6fyjvh5rflxkfd07llfaa0kk4i3y836qpld9vzy49q6ky"))))
41 (build-system gnu-build-system)
42 (arguments
43 `(#:configure-flags '("--enable-libserveez-install")
44 #:phases
45 (modify-phases %standard-phases
46 (add-before 'patch-source-shebangs 'patch-test-source
47 (lambda _
48 (substitute*
49 (find-files "test" "^t[0-9]{3}$")
50 (("/bin/sh") (which "sh")))
51 #t)))))
52 (native-inputs
53 (list lzip))
54 (inputs
55 (list guile-2.2))
56 (home-page "https://www.gnu.org/software/serveez/")
57 (synopsis "Framework for implementing IP-based servers")
58 (description
59 "GNU Serveez is a server framework providing the routines necessary to
60easily implement IP-based servers in your application. It
61demonstrates aspects of network programming in a portable manner,
62making it convenient for both simplifying the process of adding a
63server to your application or for learning about how network services
64work. Several example servers are provided already, such as an HTTP
65server and an IRC server.")
66 (license gpl3+)))