From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IPvwKojDIGNt0AAAbAwnHQ (envelope-from ) for ; Tue, 13 Sep 2022 19:53:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wC0AK4jDIGMibwEAauVa8A (envelope-from ) for ; Tue, 13 Sep 2022 19:53:12 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8808D24326 for ; Tue, 13 Sep 2022 19:53:12 +0200 (CEST) Received: from localhost ([::1]:40456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYA5v-0002q3-JL for larch@yhetil.org; Tue, 13 Sep 2022 13:53:11 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" From: "\( via Guix-patches" via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663091592; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Svqotjcypdt2QAJyFaSwVnGJQ0XOxgup419qOP/PZBY=; b=r69Iod/xyiRVcdhLlxiqLM7Wuekf9sSPNYq/HhuqWmkbfuqmG65TtRvisJCIvdH0KfF8W5 HLcgw7E27pQLrW8u5LsMA93LQeBUPy7oHbc5nFdELht7trDRo2VDUPxtidpO6uKeawyC6o kVTZW3vmsCcUeCcK9CPO1lv/1LmViQwbnKKr3UpeAPjaSyIlUJsalcoDS+h0DLIF08CTZU oWL5MvgSptxBkJxcA16sUv2HDJEtOub+UCQ4dyODCW/SYmcx/ZJIhj/dUta6rkYp4tJle6 mj2Iwxsi1qgiDKR28qiljcvyKuiITuxNnY9gUzs2QMsJKo2XxB0/UiADnk2pcw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663091592; a=rsa-sha256; cv=none; b=W/sk9LrI0VaRzKUUk804SZX70ZxxatmJc7XZZD2YcKCLk67m0Q9na1ODIV3nXzTX5xuBU0 SnKUd8pBTmnIca9Kk7dWdMudaaXsFAuS/9mI+ykmCo+VFpV3tbF+GVLE1pSo1xT5eGzUV0 7yABnqMD9pQp7alF4KRao83gWxNXNZmBIXyjpSmpbdNnzjC9DJyvdMqFnvpRkP/x/8vLd0 Hs76XCvAReNl4SiirqOdAWne1di3wVCXVIjtFKHXeaHHezYy0wsTBM3FBWsU/JRWgFZ+J2 tgpIf0fbnQAzv6ri429Km5QFCsBlsr0AElZo7EkIwyj/0qu7aa2kXp3PA8Yo9w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=Ji61BBsd; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=Ji61BBsd; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8808D24326 X-Spam-Score: -2.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: fnCz0czeMfjl * 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