From patchwork Tue Sep 13 17:52:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 42602 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0C0DA27BBEA; Tue, 13 Sep 2022 18:53:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id AF97327BBE9 for ; Tue, 13 Sep 2022 18:53:11 +0100 (BST) Received: from localhost ([::1]:40456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYA5u-0002q3-Rn for patchwork@mira.cbaines.net; Tue, 13 Sep 2022 13:53:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYA5m-0002pv-K1 for guix-patches@gnu.org; Tue, 13 Sep 2022 13:53:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35941) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYA5m-0002sz-5B for guix-patches@gnu.org; Tue, 13 Sep 2022 13:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYA5m-0006AM-1K for guix-patches@gnu.org; Tue, 13 Sep 2022 13:53:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56951] [PATCH v2] gnu: Add jrnlc. References: <20220803131731.8771-1-paren@disroot.org> In-Reply-To: <20220803131731.8771-1-paren@disroot.org> Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 13 Sep 2022 17:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56951 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56951@debbugs.gnu.org Cc: "\(" Received: via spool by 56951-submit@debbugs.gnu.org id=B56951.166309153823642 (code B ref 56951); Tue, 13 Sep 2022 17:53:01 +0000 Received: (at 56951) by debbugs.gnu.org; 13 Sep 2022 17:52:18 +0000 Received: from localhost ([127.0.0.1]:52873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYA53-00069G-N3 for submit@debbugs.gnu.org; Tue, 13 Sep 2022 13:52:17 -0400 Received: from knopi.disroot.org ([178.21.23.139]:59502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYA51-000697-7w for 56951@debbugs.gnu.org; Tue, 13 Sep 2022 13:52:16 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id A26F749F8E; Tue, 13 Sep 2022 19:52:13 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id adGSyW-M70Cq; Tue, 13 Sep 2022 19:52:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1663091526; bh=lEmauUWWZfDWbA6TrmD+4AArJQkkxp10PCTOZUQfC/c=; h=From:To:Cc:Subject:Date; b=Ji61BBsdTrvEgnzwTpjVYqMhdQ98I1uOYZa1DpwmTIIICP2/FslwzS0uui+as0wuy TpmiIMKURyMOnmRZBOvAyhWLhJKfAiNDpux721/4XictmvhYchGsAsMOkQoAgVoCMU sCdYUtRITVCytuA8XsNEV8HO541mGr419/Ji0ikVeQ7vmJPHu/cai+wN2UJWlMfUSC hxiRDQWqx94B4IfjEuMdmpjYwQosLvuvgtG59bCX6ak8qlNNn+7vmoGxeSpmz7JWCM ebXP9ccnqtklJcoTej5wEd1wEtFacA/2h0bOXoTlayrGqaUTSy+shuKYWhFyL+aKT+ wVt56KdY3QsCQ== Date: Tue, 13 Sep 2022 18:52:01 +0100 Message-Id: <20220913175201.15957-1-paren@disroot.org> Mime-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" X-Patchwork-Original-From: "\( via Guix-patches" via From: "\\(" X-getmail-retrieved-from-mailbox: Patches * 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)))