1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-05 16:55:56 +02:00
Files
guix/gnu/packages/openpgp.scm
T
Andreas Enge 6ecb8115c6 gnu: Remove dkgpg.
* gnu/packages/openpgp.scm (dkgpg): Delete variable.

Change-Id: I54f3af99fd5a8e21d780a913f9c79245349fb562
2025-11-18 17:39:40 +01:00

156 lines
6.1 KiB
Scheme

;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2020 Justus Winter <justus@sequoia-pgp.org>
;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages openpgp)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix gexp)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages)
#:use-module (gnu packages check)
#:use-module (gnu packages compression)
#:use-module (gnu packages crypto)
#:use-module (gnu packages gnupg)
#:use-module (gnu packages multiprecision)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages web))
(define-public libtmcg
(package
(name "libtmcg")
(version "1.3.18")
(source (origin
(method url-fetch)
(uri (string-append "mirror://savannah/libtmcg/libTMCG-" version
".tar.gz"))
(sha256
(base32
"179b5jx3mqs9hgsj8cfwk6x8qib60kw9szk9fkz6s1gl3v83mnyx"))))
(build-system gnu-build-system)
(arguments '(#:configure-flags '("--enable-silent-rules")))
(inputs (list gmp libgcrypt))
(synopsis
"C++ library for creating secure and fair online card games")
(description
"The library provides a sort of useful classes, algorithms, and
high-level protocols to support an application programmer in writing such
software. The most remarkable feature is the absence of a trusted third
party (TTP), i.e. neither a central game server nor trusted hardware
components are necessary.
The corresponding cryptographic problem, actually called Mental Poker, has
been studied since 1979 (Shamir, Rivest, and Adleman) by many authors.
LibTMCG provides the first practical implementation of such protocols.")
(home-page "https://www.nongnu.org/libtmcg/")
(license license:gpl2+)))
(define-public rnp
(let ((day-of-release "2024-05-14"))
(package
(name "rnp")
(version "0.17.1")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/rnpgp/rnp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"052872b6a88vkcc58alxcm532y6dra5qqd997jga41v72h3pnj4d"))))
(build-system cmake-build-system)
(arguments
(list
#:configure-flags
#~(list "-DBUILD_SHARED_LIBS=on"
"-DSYSTEM_LIBSEXPP=on"
;; Lower the minimum tuning ratio from 6 to 4, as suggested
;; upstream to avoid the s2k_iteration_tuning failing.
"-DS2K_MINIMUM_TUNING_RATIO=4"
"-DDOWNLOAD_GTEST=off"
"-DDOWNLOAD_RUBYRNP=off")
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? parallel-tests? #:allow-other-keys)
(when tests?
;; Some OpenPGP certificates used by the tests expire.
;; To work around that, set the time to roughly the
;; release date.
(setenv "CTEST_OUTPUT_ON_FAILURE" "1")
(invoke "faketime" #$day-of-release "ctest"
"-j" (if parallel-tests?
(number->string (parallel-job-count))
"1"))))))))
(native-inputs
(list gnupg ;for tests
googletest ;for tests
libfaketime ;for tests
pkg-config
python))
(inputs (list botan bzip2 json-c sexpp zlib))
(synopsis
"RFC4880-compliant OpenPGP library written in C++")
(description
"Set of OpenPGP (RFC4880) tools that works on Linux, *BSD and macOS as a
replacement of GnuPG. It is maintained by Ribose after being forked from
NetPGP, itself originally written for NetBSD.
librnp is the library used by rnp for all OpenPGP functions, useful for
developers to build against. It is a “real” library, not a wrapper like GPGME
of GnuPG.")
(home-page "https://www.rnpgp.org/")
(license
;; RNP contains code written by Ribose and code derived from netpgp.
(list
;; Ribose's BSD 2-Clause License and NetBSD's BSD 2-Clause License
;; (netpgp).
license:bsd-2
;; Nominet UK's Apache 2.0 Licence (netpgp).
license:asl2.0
;; Nominet UK's BSD 3-Clause License (netpgp).
license:bsd-3)))))
(define-public sexpp
(package
(name "sexpp")
(version "0.9.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/rnpgp/sexpp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "16y9f42w6ay3w0s23xmigqm0qi1swdfvc93g2xn3xkg1r4kpmnwq"))))
(build-system cmake-build-system)
(arguments
(list #:configure-flags '(list "-DDOWNLOAD_GTEST=off")))
(native-inputs (list googletest pkg-config))
(home-page "https://github.com/rnpgp/sexpp")
(synopsis "C++ library for S-expressions")
(description
"This package provides a C++ library for working with S-Expressions.")
(license license:expat)))