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 v2] gnu: Add jrnlc.
Date: Tue, 13 Sep 2022 18:52:01 +0100	[thread overview]
Message-ID: <20220913175201.15957-1-paren@disroot.org> (raw)
In-Reply-To: <20220803131731.8771-1-paren@disroot.org>

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

diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index 10275970b1..4d1ee7714b 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -50,6 +50,7 @@ (define-module (gnu packages c)
   #:use-module (gnu packages bootstrap)
   #:use-module (gnu packages bison)
   #:use-module (gnu packages check)
+  #:use-module (gnu packages crypto)
   #:use-module (gnu packages flex)
   #:use-module (gnu packages gcc)
   #:use-module (gnu packages perl)
@@ -1258,3 +1259,51 @@ (define-public utest-h
       (description
        "This package provides a header-only unit testing library for C/C++.")
       (license license:unlicense))))
+
+(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 #:tests? #f ;no test target
+           #:make-flags
+           #~(list (string-append "PREFIX=" #$output)
+                   (string-append "CC=" #$(cc-for-target)))
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'patch-install
+                 (lambda _
+                   (substitute* "Makefile"
+                     (("-o root") ""))))
+               (add-after 'patch-install 'fix-cross-compile
+                 (lambda _
+                   (substitute* "Makefile"
+                     (("pkg-config")
+                      #$(pkg-config-for-target)))))
+               (delete 'configure) ;no configure script
+               (add-before 'install 'create-output-dirs
+                 (lambda _
+                   (mkdir-p #$output)
+                   (with-directory-excursion #$output
+                     (mkdir-p "bin")
+                     (mkdir-p "man")))))))
+    (inputs (list json-c libsodium))
+    (native-inputs (list pkg-config))
+    (home-page "https://github.com/thexhr/jrnlc")
+    (synopsis "Command-line journal for note-taking")
+    (description
+     "This package provides a command-line utility for taking notes
+in a journal.  You can take notes by entering them on the command
+line or writing them to standard input.  It supports full encryption
+of the journal, so that your notes remain secret.")
+    (license license:isc)))
-- 
2.37.3





  reply	other threads:[~2022-09-13 17:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-03 13:17 [bug#56951] [PATCH] gnu: packages: Add jrnlc ( via Guix-patches via
2022-09-13 17:52 ` ( via Guix-patches via [this message]
2022-09-13 17:53   ` [bug#56951] [PATCH v2] gnu: " ( 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=20220913175201.15957-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).