guix-channel-x/luflac-x/packages/web-themes.scm

79 lines
2.7 KiB
Scheme

(define-module (luflac-x packages web-themes)
#:use-module (guix build gnu-build-system)
#:use-module (guix build utils)
#:use-module (guix build-system copy)
#:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix search-paths))
;;; CONSTANTS
(define WEB_THEMES_PATH
(search-path-specification (variable "WEB_THEMES_PATH")
(files (list "www/themes"))))
;;; PACKAGES
(define-public guix-website-theme-aureus
(package
(name "guix-website-theme-aureus")
(version "0.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://codeberg.org/luis-felipe/guix-packages-website")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1b9lhi9jhbdfgj83ax5yjjggxrnrh5af5fg07y0xwm6rirbaqvf0"))))
(build-system copy-build-system)
(arguments
'(#:install-plan '(("pub/themes/aureus" "www/themes/"))))
(native-search-paths (list WEB_THEMES_PATH))
(home-page "https://luis-felipe.gitlab.io/") ; TODO: Add actual website.
(synopsis "Theme for Guix websites")
(description
"This theme provides CSS, JavaScript, images and other supporting
files used to give Guix websites a uniform look and feel.
Installing it makes the @file{aureus} theme available in
@env{WEB_THEMES_PATH}.")
(license (list license:public-domain license:cc-by-sa4.0))))
(define-public guix-website-theme-initial
(let ((version "0")
(commit "beedf7290cc72051ba29e9c11761a77614b9ec83")
(revision "0"))
(package
(name "guix-website-theme-initial")
(version (git-version version revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://git.savannah.gnu.org/git/guix/guix-artwork.git")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"1881im98di0fw697pg9rga4h1h78r4645kib7caaajr0gxpni8dj"))))
(build-system copy-build-system)
(arguments
'(#:install-plan '(("website/static/" "www/themes/guix-initial"))))
(native-search-paths (list WEB_THEMES_PATH))
(home-page "https://guix.gnu.org/")
(synopsis "Theme for Guix's static website")
(description
"This is the initial theme of Guix's static website. It provides
provides CSS, images and other supporting files used to give
guix.gnu.org its look and feel.
Installing it makes the @file{guix-initial} theme available in
@env{WEB_THEMES_PATH}.")
(license (list license:public-domain license:cc-by-sa4.0)))))