GNU bug report logs -
#56951
[PATCH] gnu: packages: Add jrnlc.
Previous Next
To reply to this bug, email your comments to 56951 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#56951
; Package
guix-patches
.
(Wed, 03 Aug 2022 13:20:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"(" <paren <at> disroot.org>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Wed, 03 Aug 2022 13:20:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* 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
Information forwarded
to
guix-patches <at> gnu.org
:
bug#56951
; Package
guix-patches
.
(Tue, 13 Sep 2022 17:53:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 56951 <at> debbugs.gnu.org (full text, mbox):
* 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
Information forwarded
to
guix-patches <at> gnu.org
:
bug#56951
; Package
guix-patches
.
(Tue, 13 Sep 2022 17:54:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 56951 <at> debbugs.gnu.org (full text, mbox):
This patch uses the latest standard package style, uses c.scm instead
of admin.scm, and fixes cross-compilation.
-- (
This bug report was last modified 2 years and 67 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.