unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#60633] [PATCH] gnu: Add kiln.
@ 2023-01-07 18:32 Nikolay Korotkiy via Guix-patches via
  2023-03-10 21:16 ` bug#60633: " Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Nikolay Korotkiy via Guix-patches via @ 2023-01-07 18:32 UTC (permalink / raw)
  To: 60633; +Cc: Nikolay Korotkiy

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

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index dcb7b3872a..e7ad92c442 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -7997,6 +7997,44 @@ (define-public gmid
 @end itemize")
     (license license:isc)))
 
+(define-public kiln
+  (package
+    (name "kiln")
+    (version "0.4.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://git.sr.ht/~adnano/kiln")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1lvzv46hn80gffw47mcc28iahwqng7pvg500s9jlrq6mhr4k5ih4"))))
+    (build-system go-build-system)
+    (arguments
+     `(#:import-path "git.sr.ht/~adnano/kiln"
+       #:install-source? #f
+       #:phases (modify-phases %standard-phases
+                  (add-after 'install 'install-man
+                    (lambda* (#:key outputs #:allow-other-keys)
+                      (let* ((out (assoc-ref outputs "out"))
+                             (man1 (string-append out "/share/man/man1")))
+                        (system
+                         "scdoc < src/git.sr.ht/~adnano/kiln/docs/kiln.1.scd > kiln.1")
+                        (mkdir-p man1)
+                        (install-file "kiln.1" man1)) #t)))))
+    (propagated-inputs (list go-github-com-google-shlex
+                             go-github-com-pelletier-go-toml
+                             go-gopkg-in-yaml-v3))
+    (native-inputs (list scdoc))
+    (home-page "https://kiln.adnano.co/")
+    (synopsis "A simple static site generator")
+    (description
+     "kiln takes a different approach to building static sites.
+Instead of packing all functionality into kiln itself, the core is lightweight
+and can be extended with the use of external commands.")
+    (license license:expat)))
+
 (define-public siege
   (package
     (name "siege")

base-commit: d16edd03cfa84f6d5fed979fd7283966cd3e4934
-- 
2.37.2





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

* bug#60633: [PATCH] gnu: Add kiln.
  2023-01-07 18:32 [bug#60633] [PATCH] gnu: Add kiln Nikolay Korotkiy via Guix-patches via
@ 2023-03-10 21:16 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2023-03-10 21:16 UTC (permalink / raw)
  To: Nikolay Korotkiy via Guix-patches via; +Cc: Nikolay Korotkiy, 60633-done

Hello,

Nikolay Korotkiy via Guix-patches via <guix-patches@gnu.org> writes:

> * gnu/packages/web.scm (kiln): New variable.

Applied. Thank you.

> +    (arguments
> +     `(#:import-path "git.sr.ht/~adnano/kiln"

I used G-expressions.

> +       #:install-source? #f
> +       #:phases (modify-phases %standard-phases
> +                  (add-after 'install 'install-man
> +                    (lambda* (#:key outputs #:allow-other-keys)
> +                      (let* ((out (assoc-ref outputs "out"))
> +                             (man1 (string-append out "/share/man/man1")))
> +                        (system
> +                         "scdoc < src/git.sr.ht/~adnano/kiln/docs/kiln.1.scd > kiln.1")
> +                        (mkdir-p man1)
> +                        (install-file "kiln.1" man1)) #t)))))

I removed the trailing #T.

> +    (propagated-inputs (list go-github-com-google-shlex
> +                             go-github-com-pelletier-go-toml
> +                             go-gopkg-in-yaml-v3))
> +    (native-inputs (list scdoc))
> +    (home-page "https://kiln.adnano.co/")
> +    (synopsis "A simple static site generator")

I removed the article "A".

Regards,
-- 
Nicolas Goaziou




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

end of thread, other threads:[~2023-03-10 21:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-07 18:32 [bug#60633] [PATCH] gnu: Add kiln Nikolay Korotkiy via Guix-patches via
2023-03-10 21:16 ` bug#60633: " Nicolas Goaziou

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).