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