* [PATCH] gnu: Add woof.
@ 2016-06-08 22:22 Clément Lassieur
2016-06-10 13:13 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Clément Lassieur @ 2016-06-08 22:22 UTC (permalink / raw)
To: guix-devel; +Cc: Clément Lassieur
---
gnu/packages/web.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 6ac03fc..7fae9ab 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -12,6 +12,7 @@
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org>
;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
+;;; Copyright © 2016 Clément Lassieur <clement@lassieur.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -41,6 +42,7 @@
#:use-module (guix build-system perl)
#:use-module (guix build-system cmake)
#:use-module (guix build-system r)
+ #:use-module (guix build-system trivial)
#:use-module (gnu packages)
#:use-module (gnu packages apr)
#:use-module (gnu packages documentation)
@@ -3350,3 +3352,38 @@ you'd expect.")
HTTPS. It provides a library, libuhttpmock, which implements recording and
playback of HTTP request/response traces.")
(license l:lgpl2.1+)))
+
+(define-public woof
+ (package
+ (name "woof")
+ (version "2012-05-31")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "http://www.home.unix-ag.org/simon/woof-"
+ version ".py"))
+ (sha256
+ (base32
+ "0wjmjhpg6xlid33yi59j47q2qadz20sijrqsjahj30vngz856hyq"))))
+ (build-system trivial-build-system)
+ (arguments
+ '(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let* ((source (assoc-ref %build-inputs "source"))
+ (out (assoc-ref %outputs "out"))
+ (bin (string-append out "/bin"))
+ (python (assoc-ref %build-inputs "python")))
+ (mkdir-p bin)
+ (with-directory-excursion bin
+ (copy-file source "woof")
+ (patch-shebang "woof" (list (string-append python "/bin")))
+ (chmod "woof" #o555))))))
+ (inputs `(("python" ,python-2)))
+ (home-page "http://www.home.unix-ag.org/simon/woof.html")
+ (synopsis "Single file webserver")
+ (description "Woof (Web Offer One File) is a small simple stupid webserver
+that can easily be invoked on a single file. Your partner can access the file
+with tools he trusts (e.g. wget).")
+ (license l:gpl2+)))
--
2.8.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gnu: Add woof.
2016-06-08 22:22 [PATCH] gnu: Add woof Clément Lassieur
@ 2016-06-10 13:13 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2016-06-10 13:13 UTC (permalink / raw)
To: Clément Lassieur; +Cc: guix-devel
Clément Lassieur <clement@lassieur.org> skribis:
> ---
> gnu/packages/web.scm | 37 +++++++++++++++++++++++++++++++++++++
> 1 file changed, 37 insertions(+)
Applied with tiny changes in the synopsis/description and a commit log.
Thank you!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-10 13:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-08 22:22 [PATCH] gnu: Add woof Clément Lassieur
2016-06-10 13:13 ` 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).