summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2020-08-08 16:20:58 +0300
committerOleg Pykhalov <go.wigust@gmail.com>2020-08-08 16:25:23 +0300
commit6f15f009f035ffac9b7e8477d0b6c69be6068e0e (patch)
treeb5afb2a9f0f925a1b2aba0e292dc9140e98f7f52
parentguix: haunt-symlinks: Patch read-html-post. (diff)
downloadguix-wigust-6f15f009f035ffac9b7e8477d0b6c69be6068e0e.tar.gz
guix: Add homer.
* guix/wigust/packages/web.scm (homer): New variable.
-rw-r--r--guix/wigust/packages/web.scm56
1 files changed, 56 insertions, 0 deletions
diff --git a/guix/wigust/packages/web.scm b/guix/wigust/packages/web.scm
new file mode 100644
index 0000000..9d31d1d
--- /dev/null
+++ b/guix/wigust/packages/web.scm
@@ -0,0 +1,56 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (wigust packages web)
+ #:use-module (guix download)
+ #:use-module (guix packages)
+ #:use-module (guix build-system trivial)
+ #:use-module ((guix licenses) #:prefix license:))
+
+(define-public homer
+ (package
+ (name "homer")
+ (version "20.07.2")
+ (source
+ (origin
+ (method url-fetch/zipbomb)
+ (uri (string-append
+ "https://github.com/bastienwirtz/homer/releases/download/v"
+ version "/homer.zip"))
+ (file-name (string-append name "-" version ".zip"))
+ (sha256
+ (base32
+ "1m2g8v0q9mj0w8ndijig95chalqwnskyfc7kiyb8l8kid137bs5v"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let* ((out (assoc-ref %outputs "out"))
+ (data (string-append out "/share/homer")))
+ (mkdir-p data)
+ (copy-recursively (assoc-ref %build-inputs "source") data)
+ (symlink "/etc/homer/config.yml"
+ (string-append data "/assets/config.yml"))
+ #t))))
+ (home-page "https://github.com/bastienwirtz/homer/")
+ (synopsis "Static homepage for server to keep your services on hand")
+ (description "Homer is a full static html/js dashboard, generated from the
+source in /src using webpack. It's meant to be served by an HTTP server.")
+ (license license:expat)))