unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "\( via Guix-patches" via <guix-patches@gnu.org>
To: 56951@debbugs.gnu.org
Cc: "\(" <paren@disroot.org>
Subject: [bug#56951] [PATCH] gnu: packages: Add jrnlc.
Date: Wed,  3 Aug 2022 14:17:31 +0100	[thread overview]
Message-ID: <20220803131731.8771-1-paren@disroot.org> (raw)

* gnu/packages/admin.scm (jrnlc): New variable.
---
 gnu/packages/admin.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 146423d068..2d84787aef 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -5447,3 +5447,44 @@ (define-public fail2ban
 up services to use only two factor, or public/private authentication
 mechanisms if you really want to protect services.")
     (license license:gpl2+)))
+
+(define-public jrnlc
+  (package
+    (name "jrnlc")
+    (version "2022.a")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/thexhr/jrnlc")
+               (commit version)))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32 "10j4iyac41ndr9yic7vdkajf4kvvwzbd5jxpjypzybcygj9jq8h6"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list #:make-flags
+           #~(list (string-append "PREFIX=" #$output)
+                   (string-append "CC=" #$(cc-for-target)))
+           #:tests? #f ; no check target
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'patch-install-invocations
+                 (lambda _
+                  (substitute* "Makefile"
+                    (("-o root") ""))))
+               (delete 'configure)
+               (add-before 'install 'create-output-dirs
+                 (lambda* (#:key outputs #:allow-other-keys)
+                   (let ((out (assoc-ref outputs "out")))
+                     (mkdir-p (string-append out "/bin"))
+                     (mkdir-p (string-append out "/man"))))))))
+    (inputs (list json-c libsodium))
+    (native-inputs (list pkg-config))
+    (home-page "https://github.com/thexhr/jrnlc")
+    (synopsis "Opinionated command-line journal")
+    (description "@code{jrnlc} is a opinionated command line application
+for note-taking.  You can take notes by entering them on the command line
+or piping them from a file.  It supports full encryption of the journal,
+so that your notes remain secret.")
+    (license license:isc)))
-- 
2.37.1





             reply	other threads:[~2022-08-03 13:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-03 13:17 ( via Guix-patches via [this message]
2022-09-13 17:52 ` [bug#56951] [PATCH v2] gnu: Add jrnlc ( via Guix-patches via
2022-09-13 17:53   ` ( via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220803131731.8771-1-paren@disroot.org \
    --to=guix-patches@gnu.org \
    --cc=56951@debbugs.gnu.org \
    --cc=paren@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).