unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add darkhttpd.
@ 2016-09-09 19:56 Arun Isaac
  2016-09-09 20:41 ` Leo Famulari
  0 siblings, 1 reply; 16+ messages in thread
From: Arun Isaac @ 2016-09-09 19:56 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/web.scm (darkhttpd): New variable.
---
 gnu/packages/web.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 20c7d12..261eed2 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -14,6 +14,7 @@
 ;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
 ;;; Copyright © 2016 Clément Lassieur <clement@lassieur.org>
 ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
+;;; Copyright © 2016 Arun Isaac <arunisaac@systemreboot.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3633,3 +3634,36 @@ provides a unix command line interface to a variety of popular www search engine
 and similar services.")
     (home-page "https://surfraw.alioth.debian.org/")
     (license l:public-domain)))
+
+(define-public darkhttpd
+  (package
+    (name "darkhttpd")
+    (version "1.12")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url (string-append "https://unix4lyfe.org/git/darkhttpd"))
+             (commit "master")))
+       (sha256
+        (base32
+         "0wi8dfgj4ic0fsy4dszl69xgxdxlwxz4c30vsw2i2dpnczgjm04k"))
+       (file-name (string-append name "-" version))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'configure
+           (lambda _ (setenv "CC" "gcc")))
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
+               (mkdir-p bin)
+               (copy-file "darkhttpd" (string-append bin "/darkhttpd"))))))))
+    (synopsis "Simple static web server")
+    (description "darkhttpd is a simple static web server.  It is
+standalone and does not need inetd or ucspi-tcp.  It does not need any
+config files -- you only have to specify the www root.")
+    (home-page "https://unix4lyfe.org/darkhttpd/")
+    (license l:bsd-2)))
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-09-15 15:24 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-09 19:56 [PATCH] gnu: Add darkhttpd Arun Isaac
2016-09-09 20:41 ` Leo Famulari
2016-09-10  5:19   ` Arun Isaac
2016-09-10  6:51   ` Arun Isaac
2016-09-10  7:10     ` Alex Kost
2016-09-10 12:30       ` Arun Isaac
2016-09-10 17:44         ` Alex Kost
2016-09-11 15:14           ` Arun Isaac
2016-09-11 19:20           ` Arun Isaac
2016-09-13 15:42             ` Leo Famulari
2016-09-13 17:09               ` Arun Isaac
2016-09-14  6:01               ` Arun Isaac
2016-09-14 21:28                 ` Leo Famulari
2016-09-15  6:17                   ` Arun Isaac
2016-09-15 15:23                     ` Leo Famulari
2016-09-11 13:52         ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).