2014-12-06 23:02:43 +00:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2021-07-16 15:20:09 +00:00
|
|
|
|
;;; Copyright © 2014, 2021 Ludovic Courtès <ludo@gnu.org>
|
2022-08-12 18:45:06 +00:00
|
|
|
|
;;; Copyright © 2016, 2021, 2022 Efraim Flashner <efraim@flashner.co.il>
|
2016-10-22 16:04:24 +00:00
|
|
|
|
;;; Copyright © 2016 Mike Gerwitz <mtg@gnu.org>
|
2016-10-24 15:00:31 +00:00
|
|
|
|
;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
|
2017-04-26 18:37:10 +00:00
|
|
|
|
;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
|
2021-01-06 02:30:30 +00:00
|
|
|
|
;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
|
2023-04-27 18:54:47 +00:00
|
|
|
|
;;; Copyright © 2017, 2019, 2023 Ricardo Wurmus <rekado@elephly.net>
|
2019-04-18 08:52:31 +00:00
|
|
|
|
;;; Copyright © 2018, 2019 Chris Marusich <cmmarusich@gmail.com>
|
2018-08-09 13:49:03 +00:00
|
|
|
|
;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
|
2020-11-06 19:16:43 +00:00
|
|
|
|
;;; Copyright © 2020 Raphaël Mélotte <raphael.melotte@mind.be>
|
2021-05-31 23:55:34 +00:00
|
|
|
|
;;; Copyright © 2021 Antero Mejr <antero@kodmin.com>
|
2021-06-12 13:58:04 +00:00
|
|
|
|
;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
|
2021-06-15 15:37:21 +00:00
|
|
|
|
;;; Copyright © 2021 Sergey Trofimov <sarg@sarg.org.ru>
|
2021-07-03 04:32:17 +00:00
|
|
|
|
;;; Copyright © 2021 Dhruvin Gandhi <contact@dhruvin.dev>
|
2021-11-05 17:59:27 +00:00
|
|
|
|
;;; Copyright © 2021 Ahmad Jarara <git@ajarara.io>
|
2023-07-14 16:14:27 +00:00
|
|
|
|
;;; Copyright © 2022, 2023 John Kehayias <john.kehayias@protonmail.com>
|
2022-02-05 22:25:44 +00:00
|
|
|
|
;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
|
2022-07-24 00:09:14 +00:00
|
|
|
|
;;; Copyright © 2022 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|
2023-03-06 01:30:27 +00:00
|
|
|
|
;;; Copyright © 2023 Jake Leporte <jakeleporte@outlook.com>
|
2023-04-17 20:18:01 +00:00
|
|
|
|
;;; Copyright © 2023 Timotej Lazar <timotej.lazar@araneo.si>
|
2023-04-20 20:15:59 +00:00
|
|
|
|
;;; Copyright © 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
2023-07-14 16:13:34 +00:00
|
|
|
|
;;; Copyright © 2023 Pierre Langlois <pierre.langlois@gmx.com>
|
2014-12-06 23:02:43 +00:00
|
|
|
|
;;;
|
|
|
|
|
;;; 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/>.
|
|
|
|
|
|
2016-10-26 06:33:24 +00:00
|
|
|
|
(define-module (gnu packages security-token)
|
2014-12-06 23:02:43 +00:00
|
|
|
|
#:use-module (gnu packages)
|
2016-10-26 10:00:58 +00:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2014-12-06 23:02:43 +00:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2019-04-18 09:50:33 +00:00
|
|
|
|
#:use-module (guix gexp)
|
2022-03-27 13:00:04 +00:00
|
|
|
|
#:use-module (guix utils)
|
2018-06-22 19:08:52 +00:00
|
|
|
|
#:use-module (guix git-download)
|
2021-05-31 23:55:34 +00:00
|
|
|
|
#:use-module (guix build-system cargo)
|
2021-06-15 15:37:21 +00:00
|
|
|
|
#:use-module (guix build-system cmake)
|
2014-12-06 23:02:43 +00:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2017-04-26 18:37:10 +00:00
|
|
|
|
#:use-module (guix build-system glib-or-gtk)
|
2023-07-14 16:13:53 +00:00
|
|
|
|
#:use-module (guix build-system pyproject)
|
2019-04-18 08:52:31 +00:00
|
|
|
|
#:use-module (guix build-system python)
|
2023-08-08 02:51:33 +00:00
|
|
|
|
#:use-module (guix build-system qt)
|
2017-04-26 18:37:10 +00:00
|
|
|
|
#:use-module (gnu packages autotools)
|
2019-10-27 06:01:00 +00:00
|
|
|
|
#:use-module (gnu packages base)
|
2023-03-06 01:30:27 +00:00
|
|
|
|
#:use-module (gnu packages bash)
|
2016-10-22 16:04:24 +00:00
|
|
|
|
#:use-module (gnu packages curl)
|
2018-04-28 10:44:09 +00:00
|
|
|
|
#:use-module (gnu packages check)
|
2021-11-05 17:59:27 +00:00
|
|
|
|
#:use-module (gnu packages compression)
|
2021-05-31 23:55:34 +00:00
|
|
|
|
#:use-module (gnu packages crates-io)
|
2018-04-28 07:49:35 +00:00
|
|
|
|
#:use-module (gnu packages docbook)
|
2018-04-28 10:44:09 +00:00
|
|
|
|
#:use-module (gnu packages documentation)
|
2019-04-18 09:50:33 +00:00
|
|
|
|
#:use-module (gnu packages dns)
|
2022-08-29 11:12:55 +00:00
|
|
|
|
#:use-module (gnu packages flex)
|
2017-04-26 18:37:10 +00:00
|
|
|
|
#:use-module (gnu packages gettext)
|
2022-07-24 00:09:14 +00:00
|
|
|
|
#:use-module (gnu packages glib)
|
2018-04-28 10:44:09 +00:00
|
|
|
|
#:use-module (gnu packages graphviz)
|
2022-01-14 21:11:47 +00:00
|
|
|
|
#:use-module (gnu packages gnome)
|
2020-11-06 19:16:43 +00:00
|
|
|
|
#:use-module (gnu packages gnupg)
|
2017-04-26 18:37:10 +00:00
|
|
|
|
#:use-module (gnu packages gtk)
|
2016-10-24 15:00:31 +00:00
|
|
|
|
#:use-module (gnu packages libusb)
|
2016-10-22 16:04:24 +00:00
|
|
|
|
#:use-module (gnu packages linux)
|
2022-07-24 00:09:14 +00:00
|
|
|
|
#:use-module (gnu packages lua)
|
2014-12-06 23:02:43 +00:00
|
|
|
|
#:use-module (gnu packages man)
|
2017-04-26 18:37:10 +00:00
|
|
|
|
#:use-module (gnu packages networking)
|
|
|
|
|
#:use-module (gnu packages cyrus-sasl)
|
2018-08-15 12:52:58 +00:00
|
|
|
|
#:use-module (gnu packages popt)
|
2018-04-28 07:49:35 +00:00
|
|
|
|
#:use-module (gnu packages readline)
|
2021-06-15 15:37:21 +00:00
|
|
|
|
#:use-module (gnu packages qt)
|
2017-04-26 18:37:10 +00:00
|
|
|
|
#:use-module (gnu packages tls)
|
2018-04-28 10:44:09 +00:00
|
|
|
|
#:use-module (gnu packages tex)
|
2016-10-22 16:04:24 +00:00
|
|
|
|
#:use-module (gnu packages perl)
|
2017-04-26 18:37:10 +00:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2019-04-18 08:52:31 +00:00
|
|
|
|
#:use-module (gnu packages python)
|
2023-07-14 16:13:53 +00:00
|
|
|
|
#:use-module (gnu packages python-build)
|
2019-04-18 09:50:33 +00:00
|
|
|
|
#:use-module (gnu packages python-crypto)
|
|
|
|
|
#:use-module (gnu packages python-xyz)
|
2019-04-18 08:52:31 +00:00
|
|
|
|
#:use-module (gnu packages swig)
|
2022-01-14 21:11:47 +00:00
|
|
|
|
#:use-module (gnu packages suckless)
|
2018-12-10 00:34:03 +00:00
|
|
|
|
#:use-module (gnu packages web)
|
2022-01-14 21:11:47 +00:00
|
|
|
|
#:use-module (gnu packages xdisorg)
|
2017-04-26 18:37:10 +00:00
|
|
|
|
#:use-module (gnu packages xml))
|
2014-12-06 23:02:43 +00:00
|
|
|
|
|
2016-10-24 15:00:31 +00:00
|
|
|
|
(define-public ccid
|
|
|
|
|
(package
|
|
|
|
|
(name "ccid")
|
2023-08-12 23:52:25 +00:00
|
|
|
|
(version "1.5.2")
|
2016-10-24 15:00:31 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2020-07-23 23:00:48 +00:00
|
|
|
|
(uri (string-append "https://ccid.apdu.fr/files/ccid-"
|
|
|
|
|
version ".tar.bz2"))
|
2016-10-24 15:00:31 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2023-08-12 23:52:25 +00:00
|
|
|
|
"06bjdswbwcwndsn23rsdhz5a7xqsgb66glqnk9lqzd7qws3l94qk"))))
|
2016-10-24 15:00:31 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags (list (string-append "--enable-usbdropdir=" %output
|
|
|
|
|
"/pcsc/drivers"))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-Makefile
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "src/Makefile.in"
|
|
|
|
|
(("/bin/echo") (which "echo")))
|
|
|
|
|
#t)))))
|
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list perl pkg-config))
|
2016-10-24 15:00:31 +00:00
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list libusb pcsc-lite))
|
2018-06-04 16:19:43 +00:00
|
|
|
|
(home-page "https://ccid.apdu.fr/")
|
2016-10-24 15:00:31 +00:00
|
|
|
|
(synopsis "PC/SC driver for USB smart card devices")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides a PC/SC IFD handler implementation for devices
|
|
|
|
|
compliant with the CCID and ICCD protocols. It supports a wide range of
|
|
|
|
|
readers and is needed to communicate with such devices through the
|
|
|
|
|
@command{pcscd} resource manager.")
|
|
|
|
|
(license license:lgpl2.1+)))
|
|
|
|
|
|
2017-04-26 18:37:10 +00:00
|
|
|
|
(define-public eid-mw
|
|
|
|
|
(package
|
|
|
|
|
(name "eid-mw")
|
2023-09-10 00:00:00 +00:00
|
|
|
|
(version "5.1.11")
|
2018-06-22 19:08:52 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/Fedict/eid-mw")
|
|
|
|
|
(commit (string-append "v" version))))
|
2019-04-30 14:34:34 +00:00
|
|
|
|
(file-name (git-file-name name version))
|
2018-06-22 19:08:52 +00:00
|
|
|
|
(sha256
|
2023-09-10 00:00:00 +00:00
|
|
|
|
(base32 "09mhpwvqsr3pd2by3jm5jzjhyfx0f80bii35zd81vbzy85z26igg"))))
|
2017-04-26 18:37:10 +00:00
|
|
|
|
(build-system glib-or-gtk-build-system)
|
2017-11-16 23:26:42 +00:00
|
|
|
|
(native-inputs
|
2022-07-24 00:00:01 +00:00
|
|
|
|
(list autoconf
|
|
|
|
|
autoconf-archive
|
|
|
|
|
automake
|
|
|
|
|
gettext-minimal
|
|
|
|
|
libassuan
|
|
|
|
|
libtool
|
|
|
|
|
perl
|
|
|
|
|
pkg-config))
|
2017-04-26 18:37:10 +00:00
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list curl
|
|
|
|
|
openssl
|
|
|
|
|
gtk+
|
|
|
|
|
pcsc-lite
|
|
|
|
|
p11-kit
|
|
|
|
|
libproxy
|
|
|
|
|
libxml2
|
|
|
|
|
cyrus-sasl))
|
2017-04-26 18:37:10 +00:00
|
|
|
|
(arguments
|
2021-01-06 02:34:54 +00:00
|
|
|
|
`(#:configure-flags
|
2021-11-24 22:05:30 +00:00
|
|
|
|
(list "--disable-static"
|
|
|
|
|
|
|
|
|
|
;; With the (prettier) pinentry enabled, eid-viewer will skip
|
|
|
|
|
;; crucial dialogue when used with card readers with built-in
|
|
|
|
|
;; keypads such as the Digipass 870, and possibly others too.
|
|
|
|
|
"--disable-pinentry")
|
2021-01-06 02:34:54 +00:00
|
|
|
|
#:phases
|
2017-04-26 18:37:10 +00:00
|
|
|
|
(modify-phases %standard-phases
|
2020-11-11 16:46:18 +00:00
|
|
|
|
(replace 'bootstrap
|
2018-06-22 19:06:15 +00:00
|
|
|
|
(lambda _
|
|
|
|
|
;; configure.ac relies on ‘git --describe’ to get the version.
|
|
|
|
|
;; Patch it to just return the real version number directly.
|
|
|
|
|
(substitute* "scripts/build-aux/genver.sh"
|
|
|
|
|
(("/bin/sh") (which "sh"))
|
2020-05-28 00:24:14 +00:00
|
|
|
|
(("^(GITDESC=).*" _ match) (string-append match ,version "\n")))
|
2021-10-20 23:38:19 +00:00
|
|
|
|
(invoke "sh" "./bootstrap.sh"))))))
|
2021-11-24 22:14:09 +00:00
|
|
|
|
(synopsis "Belgian electronic identity card (eID) middleware")
|
|
|
|
|
(description "The Belgian eID middleware is required to authenticate with
|
|
|
|
|
online services and sign digital documents with Belgian identity cards.
|
|
|
|
|
|
|
|
|
|
It requires a running pcscd service and a compatible card reader.")
|
2017-04-26 18:37:10 +00:00
|
|
|
|
(home-page "https://github.com/Fedict/eid-mw")
|
|
|
|
|
(license license:lgpl3)))
|
|
|
|
|
|
2014-12-06 23:02:43 +00:00
|
|
|
|
(define-public libyubikey
|
|
|
|
|
(package
|
|
|
|
|
(name "libyubikey")
|
2016-02-18 08:49:11 +00:00
|
|
|
|
(version "1.13")
|
2014-12-06 23:02:43 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://developers.yubico.com/yubico-c/Releases/"
|
|
|
|
|
name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-18 08:49:11 +00:00
|
|
|
|
"009l3k2zyn06dbrlja2d4p2vfnzjhlcqxi88v02mlrnb17mx1v84"))))
|
2014-12-06 23:02:43 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(synopsis "Development kit for the YubiKey authentication device")
|
|
|
|
|
(description
|
|
|
|
|
"This package contains a C library and command-line tools that make up
|
|
|
|
|
the low-level development kit for the Yubico YubiKey authentication device.")
|
|
|
|
|
(home-page "https://developers.yubico.com/yubico-c/")
|
2016-10-26 10:00:58 +00:00
|
|
|
|
(license license:bsd-2)))
|
2014-12-06 23:02:43 +00:00
|
|
|
|
|
2020-04-14 19:29:27 +00:00
|
|
|
|
(define-public softhsm
|
|
|
|
|
(package
|
|
|
|
|
(name "softhsm")
|
|
|
|
|
(version "2.6.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://dist.opendnssec.org/source/"
|
|
|
|
|
"softhsm-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2023-04-17 20:18:01 +00:00
|
|
|
|
"1wkmyi6n3z2pak1cj5yk6v6bv9w0m24skycya48iikab0mrr8931"))
|
|
|
|
|
(patches (search-patches "softhsm-fix-openssl3-tests.patch"))))
|
2020-04-14 19:29:27 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:configure-flags '("--disable-gost"))) ; TODO Missing the OpenSSL
|
|
|
|
|
; engine for GOST
|
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list openssl))
|
2020-04-14 19:29:27 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list pkg-config cppunit))
|
2020-04-14 19:29:27 +00:00
|
|
|
|
(synopsis "Software implementation of a generic cryptographic device")
|
|
|
|
|
(description
|
|
|
|
|
"SoftHSM 2 is a software implementation of a generic cryptographic device
|
|
|
|
|
with a PKCS #11 Cryptographic Token Interface.")
|
|
|
|
|
(home-page "https://www.opendnssec.org/softhsm/")
|
|
|
|
|
(license license:bsd-2)))
|
|
|
|
|
|
2016-10-22 16:04:24 +00:00
|
|
|
|
(define-public pcsc-lite
|
|
|
|
|
(package
|
|
|
|
|
(name "pcsc-lite")
|
2022-08-29 11:12:55 +00:00
|
|
|
|
(version "1.9.8")
|
2016-10-22 16:04:24 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2020-01-10 03:28:07 +00:00
|
|
|
|
(uri (string-append "https://pcsclite.apdu.fr/files/"
|
|
|
|
|
"pcsc-lite-" version ".tar.bz2"))
|
2016-10-22 16:04:24 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-08-29 11:12:55 +00:00
|
|
|
|
"12923c6l5qzga1xlcxvm0vzbqrxnxq1qgzlrxf2y5gpcaz2q0bah"))))
|
2016-10-22 16:04:24 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2017-12-19 00:20:44 +00:00
|
|
|
|
`(#:configure-flags '("--enable-usbdropdir=/var/lib/pcsc/drivers"
|
|
|
|
|
"--disable-libsystemd")))
|
2016-10-22 16:04:24 +00:00
|
|
|
|
(native-inputs
|
2022-08-29 11:12:55 +00:00
|
|
|
|
(list flex
|
|
|
|
|
perl ;for pod2man
|
2021-12-13 16:18:24 +00:00
|
|
|
|
pkg-config))
|
2016-10-22 16:04:24 +00:00
|
|
|
|
(inputs
|
2022-07-23 14:39:58 +00:00
|
|
|
|
(list python eudev))
|
2018-06-04 16:19:43 +00:00
|
|
|
|
(home-page "https://pcsclite.apdu.fr/")
|
2016-10-22 16:04:24 +00:00
|
|
|
|
(synopsis "Middleware to access a smart card using PC/SC")
|
|
|
|
|
(description
|
|
|
|
|
"pcsc-lite provides an interface to communicate with smartcards and
|
|
|
|
|
readers using the SCard API. pcsc-lite is used to connect to the PC/SC daemon
|
|
|
|
|
from a client application and provide access to the desired reader.")
|
|
|
|
|
(license (list license:bsd-3 ; pcsc-lite
|
|
|
|
|
license:isc ; src/strlcat.c src/strlcpy.c
|
|
|
|
|
license:gpl3+)))) ; src/spy/*
|
|
|
|
|
|
2023-03-06 01:30:27 +00:00
|
|
|
|
(define-public pcsc-tools
|
|
|
|
|
(package
|
|
|
|
|
(name "pcsc-tools")
|
|
|
|
|
(version "1.6.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://salsa.debian.org/rousseau/pcsc-tools.git/")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"16kvw8y5289fp6y3z8l5w61gfrk872kd500a27sgr5k5dpr9vfbk"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list #:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-data-paths
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "ATR_analysis"
|
|
|
|
|
(((string-append
|
|
|
|
|
"\"/usr/local/pcsc/smartcard_list.txt\", "
|
|
|
|
|
"\"/usr/share/pcsc/smartcard_list.txt\", "
|
|
|
|
|
"\"/usr/local/share/pcsc/smartcard_list.txt\""))
|
|
|
|
|
(string-append "\"" #$output
|
|
|
|
|
"/share/pcsc/smartcard_list.txt\"")))
|
|
|
|
|
(substitute* "ATR_analysis.1p"
|
|
|
|
|
(("^(\\.IR \\./) ,\n$" _ cwd)
|
|
|
|
|
(string-append cwd "\n"))
|
|
|
|
|
(("^\\.I /usr/local/pcsc/\n$")
|
|
|
|
|
"")
|
|
|
|
|
(("/usr/share/pcsc/\n$")
|
|
|
|
|
(string-append #$output "/share/pcsc/\n")))))
|
|
|
|
|
(add-after 'patch-shebangs 'wrap-programs
|
|
|
|
|
(lambda _
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (prog)
|
|
|
|
|
(wrap-program (string-append #$output "/bin/" prog)
|
|
|
|
|
`("PERL5LIB" = (,(getenv "PERL5LIB")))))
|
|
|
|
|
'("ATR_analysis" "gscriptor" "scriptor"))
|
|
|
|
|
(wrap-program (string-append #$output "/bin/gscriptor")
|
|
|
|
|
`("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))))))
|
|
|
|
|
(native-inputs (list autoconf automake libtool gnu-gettext pkg-config))
|
|
|
|
|
(inputs (list bash-minimal ;for wrap-program
|
|
|
|
|
perl
|
|
|
|
|
perl-gtk3
|
|
|
|
|
pcsc-lite
|
|
|
|
|
perl-pcsc))
|
|
|
|
|
(synopsis "Smart cards and PC/SC tools")
|
|
|
|
|
(description "This package provides the @command{pcsc_scan},
|
|
|
|
|
@command{ATR_analysis}, @command{scriptor}, and @command{gscriptor} commands,
|
|
|
|
|
which are useful tools to test a PC/SC driver, card or reader or send commands
|
|
|
|
|
in a friendly environment (text or graphical user interface).")
|
|
|
|
|
(home-page "https://pcsc-tools.apdu.fr/")
|
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
|
2014-12-06 23:02:43 +00:00
|
|
|
|
(define-public ykclient
|
|
|
|
|
(package
|
|
|
|
|
(name "ykclient")
|
2016-02-18 08:50:46 +00:00
|
|
|
|
(version "2.15")
|
2014-12-06 23:02:43 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://developers.yubico.com/yubico-c-client/Releases/"
|
|
|
|
|
name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-02-18 08:50:46 +00:00
|
|
|
|
"05jhx9waj3pl120ddnwap1v3bjrnbfhvf3lxs2xmhpcmwzpwsqgl"))))
|
2014-12-06 23:02:43 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
|
|
|
|
|
;; There's just one test, and it requires network access to access
|
|
|
|
|
;; yubico.com, so skip it.
|
|
|
|
|
(arguments '(#:tests? #f))
|
|
|
|
|
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(native-inputs (list pkg-config help2man))
|
|
|
|
|
(inputs (list curl))
|
2014-12-06 23:02:43 +00:00
|
|
|
|
(synopsis "C library to validate one-time-password YubiKeys")
|
|
|
|
|
(description
|
|
|
|
|
"YubiKey C Client Library (libykclient) is a C library used to validate a
|
|
|
|
|
one-time-password (OTP) YubiKey against Yubico’s servers. See the Yubico
|
|
|
|
|
website for more information about Yubico and the YubiKey.")
|
|
|
|
|
(home-page "https://developers.yubico.com/yubico-c-client/")
|
2016-10-26 10:00:58 +00:00
|
|
|
|
(license license:bsd-2)))
|
2018-04-28 07:49:35 +00:00
|
|
|
|
|
|
|
|
|
(define-public opensc
|
|
|
|
|
(package
|
|
|
|
|
(name "opensc")
|
2021-12-17 04:23:48 +00:00
|
|
|
|
(version "0.22.0")
|
2018-04-28 07:49:35 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/OpenSC/OpenSC/releases/download/"
|
|
|
|
|
version "/opensc-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-12-17 04:23:48 +00:00
|
|
|
|
"11ki9j2b07w5gi2b1r39d71320s7rhfzcpaqpqra7gjy353m6kld"))))
|
2018-04-28 07:49:35 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; By setting an absolute path here, we arrange for OpenSC to
|
|
|
|
|
;; successfully dlopen libpcsclite.so.1 by default. The user can
|
|
|
|
|
;; still override this if they want to, by specifying a custom OpenSC
|
|
|
|
|
;; configuration file at runtime.
|
|
|
|
|
(add-after 'unpack 'set-default-libpcsclite.so.1-path
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
2021-07-16 14:19:35 +00:00
|
|
|
|
(let ((libpcsclite (search-input-file inputs
|
|
|
|
|
"/lib/libpcsclite.so.1")))
|
2018-04-28 07:49:35 +00:00
|
|
|
|
(substitute* "configure"
|
|
|
|
|
(("DEFAULT_PCSC_PROVIDER=\"libpcsclite\\.so\\.1\"")
|
|
|
|
|
(string-append
|
2021-12-17 04:23:48 +00:00
|
|
|
|
"DEFAULT_PCSC_PROVIDER=\"" libpcsclite "\"")))))))))
|
2018-04-28 07:49:35 +00:00
|
|
|
|
(inputs
|
2022-08-31 06:55:23 +00:00
|
|
|
|
(list readline openssl-1.1 pcsc-lite ccid))
|
2018-04-28 07:49:35 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list libxslt docbook-xsl pkg-config))
|
2018-04-28 07:49:35 +00:00
|
|
|
|
(home-page "https://github.com/OpenSC/OpenSC/wiki")
|
|
|
|
|
(synopsis "Tools and libraries related to smart cards")
|
|
|
|
|
(description
|
|
|
|
|
"OpenSC is a set of software tools and libraries to work with smart
|
|
|
|
|
cards, with the focus on smart cards with cryptographic capabilities. OpenSC
|
|
|
|
|
facilitate the use of smart cards in security applications such as
|
|
|
|
|
authentication, encryption and digital signatures. OpenSC implements the PKCS
|
|
|
|
|
#15 standard and the PKCS #11 API.")
|
|
|
|
|
(license license:lgpl2.1+)))
|
2018-04-28 10:44:09 +00:00
|
|
|
|
|
|
|
|
|
(define-public yubico-piv-tool
|
|
|
|
|
(package
|
|
|
|
|
(name "yubico-piv-tool")
|
2023-04-27 18:54:47 +00:00
|
|
|
|
(version "2.3.1")
|
2018-04-28 10:44:09 +00:00
|
|
|
|
(source (origin
|
2023-04-27 18:54:47 +00:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/Yubico/yubico-piv-tool/")
|
|
|
|
|
(commit (string-append name "-" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
2018-04-28 10:44:09 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2023-04-27 18:54:47 +00:00
|
|
|
|
"0gxrn2yzs907h22233s2337j5zb8mvygvk0z2macl4rf8w6qf4vk"))))
|
|
|
|
|
(build-system cmake-build-system)
|
2018-04-28 10:44:09 +00:00
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list gengetopt perl pcsc-lite openssl))
|
2018-04-28 10:44:09 +00:00
|
|
|
|
(native-inputs
|
2023-07-08 10:11:10 +00:00
|
|
|
|
(list check
|
|
|
|
|
doxygen
|
2021-12-13 16:18:24 +00:00
|
|
|
|
graphviz
|
|
|
|
|
help2man
|
2023-07-08 10:11:10 +00:00
|
|
|
|
pkg-config
|
|
|
|
|
(texlive-updmap.cfg)))
|
2018-04-28 10:44:09 +00:00
|
|
|
|
(home-page "https://developers.yubico.com/yubico-piv-tool/")
|
|
|
|
|
(synopsis "Interact with the PIV application on a YubiKey")
|
|
|
|
|
(description
|
|
|
|
|
"The Yubico PIV tool is used for interacting with the Privilege and
|
|
|
|
|
Identification Card (PIV) application on a YubiKey. With it you may generate
|
|
|
|
|
keys on the device, import keys and certificates, create certificate requests,
|
|
|
|
|
and other operations. It includes a library and a command-line tool.")
|
|
|
|
|
;; The file ykcs11/pkcs11.h also declares an additional, very short free
|
|
|
|
|
;; license for that one file. Please see it for details. The vast
|
|
|
|
|
;; majority of files are licensed under bsd-2.
|
|
|
|
|
(license license:bsd-2)))
|
2018-12-10 00:34:03 +00:00
|
|
|
|
|
|
|
|
|
(define-public yubikey-personalization
|
|
|
|
|
(package
|
|
|
|
|
(name "yubikey-personalization")
|
2021-05-17 18:47:34 +00:00
|
|
|
|
(version "1.20.0")
|
2018-12-10 00:34:03 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://developers.yubico.com/" name
|
|
|
|
|
"/Releases/ykpers-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-05-17 18:48:00 +00:00
|
|
|
|
"14wvlwqnwj0gllkpvfqiy8ns938bwvjsz8x1hmymmx32m074vj0f"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
;; Fix build with GCC 10, remove for versions > 1.20.0.
|
|
|
|
|
'(begin
|
|
|
|
|
(substitute* "ykpers-args.h"
|
|
|
|
|
(("^const char")
|
|
|
|
|
"extern const char"))))))
|
2018-12-10 00:34:03 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:configure-flags (list (string-append "--with-udevrulesdir="
|
|
|
|
|
(assoc-ref %outputs "out")
|
|
|
|
|
"/lib/udev/rules.d"))))
|
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list json-c-0.13 libusb
|
|
|
|
|
;; The library "libyubikey" is also known as "yubico-c".
|
|
|
|
|
libyubikey))
|
2018-12-10 00:34:03 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list pkg-config eudev))
|
2018-12-10 00:34:03 +00:00
|
|
|
|
(home-page "https://developers.yubico.com/yubikey-personalization/")
|
|
|
|
|
(synopsis "Library and tools to personalize YubiKeys")
|
|
|
|
|
(description
|
|
|
|
|
"The YubiKey Personalization package contains a C library and command
|
|
|
|
|
line tools for personalizing YubiKeys. You can use these to set an AES key,
|
|
|
|
|
retrieve a YubiKey's serial number, and so forth.")
|
|
|
|
|
(license license:bsd-2)))
|
2019-04-18 08:52:31 +00:00
|
|
|
|
|
|
|
|
|
(define-public python-pyscard
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyscard")
|
2023-07-14 16:13:34 +00:00
|
|
|
|
(version "2.0.7")
|
2019-04-18 08:52:31 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
;; The maintainer publishes releases on various sites, but
|
|
|
|
|
;; SourceForge is apparently the only one with a signed release.
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"mirror://sourceforge/pyscard/pyscard/pyscard%20"
|
|
|
|
|
version "/pyscard-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2023-07-14 16:13:34 +00:00
|
|
|
|
"1gy1hmzrhfa7bqs132v89pchm9q3rpnqf3a6225vwpx7bx959017"))))
|
2019-04-18 08:52:31 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; Tell pyscard where to find the PCSC include directory.
|
|
|
|
|
(add-after 'unpack 'patch-platform-include-dirs
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
2023-07-14 16:13:34 +00:00
|
|
|
|
(let ((pcsc-include-dir (search-input-directory
|
|
|
|
|
inputs "/include/PCSC")))
|
2019-04-18 08:52:31 +00:00
|
|
|
|
(substitute* "setup.py"
|
|
|
|
|
(("platform_include_dirs = \\[.*?\\]")
|
|
|
|
|
(string-append
|
2023-07-14 16:13:34 +00:00
|
|
|
|
"platform_include_dirs = ['" pcsc-include-dir "']"))))))
|
2019-04-18 08:52:31 +00:00
|
|
|
|
;; pyscard wants to dlopen libpcsclite, so tell it where it is.
|
|
|
|
|
(add-after 'unpack 'patch-dlopen
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(substitute* "smartcard/scard/winscarddll.c"
|
|
|
|
|
(("lib = \"libpcsclite\\.so\\.1\";")
|
2023-07-14 16:13:34 +00:00
|
|
|
|
(simple-format
|
|
|
|
|
#f
|
|
|
|
|
"lib = \"~a\";"
|
|
|
|
|
(search-input-file inputs "/lib/libpcsclite.so.1")))))))))
|
2019-04-18 08:52:31 +00:00
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list pcsc-lite))
|
2019-04-18 08:52:31 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list swig))
|
2019-04-18 08:52:31 +00:00
|
|
|
|
(home-page "https://github.com/LudovicRousseau/pyscard")
|
|
|
|
|
(synopsis "Smart card library for Python")
|
|
|
|
|
(description
|
|
|
|
|
"The pyscard smart card library is a framework for building smart card
|
|
|
|
|
aware applications in Python. The smart card module is built on top of the
|
|
|
|
|
PCSC API Python wrapper module.")
|
|
|
|
|
(license license:lgpl2.1+)))
|
|
|
|
|
|
2022-01-14 21:11:47 +00:00
|
|
|
|
(define-public yubikey-oath-dmenu
|
|
|
|
|
(package
|
|
|
|
|
(name "yubikey-oath-dmenu")
|
|
|
|
|
(version "0.13.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/emlun/yubikey-oath-dmenu")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1h6dr4l0gzgdg8zn2c39kx9cx1bgvwqxkz3z95qz9r70xfsghgwk"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:tests? #f ; there are no tests
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure) ; no configure script
|
|
|
|
|
(delete 'build) ; or build
|
|
|
|
|
(add-after 'unpack 'fix-paths
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(substitute* "yubikey-oath-dmenu.py"
|
|
|
|
|
(("'(dmenu|notify-send|wl-copy|xclip|xdotool)" _ tool)
|
|
|
|
|
(string-append
|
|
|
|
|
"'"
|
|
|
|
|
(search-input-file inputs
|
|
|
|
|
(string-append "/bin/" tool)))))))
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "make" "install"
|
|
|
|
|
(string-append "PREFIX=" #$output)))))))
|
|
|
|
|
(inputs
|
|
|
|
|
(list dmenu
|
|
|
|
|
libnotify
|
|
|
|
|
python-click
|
|
|
|
|
python-yubikey-manager
|
|
|
|
|
;; TODO add wtype, once packaged, for type support for Wayland
|
|
|
|
|
wl-clipboard ; optional clipboard support for Wayland
|
|
|
|
|
xclip ; optional clipboard support for X11
|
|
|
|
|
xdotool)) ; optional type support for X11
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/emlun/yubikey-oath-dmenu/")
|
|
|
|
|
(synopsis "Interface for getting OATH codes from a YubiKey using dmenu")
|
|
|
|
|
(description
|
|
|
|
|
"Yubikey-oath-demenu lets you pick an OATH credential from your YubiKey using
|
|
|
|
|
dmenu, and copies the corresponding OTP to the clipboard. Alternatively, it
|
|
|
|
|
can \"type\" the OTP using @code{xdotool} on X11.
|
|
|
|
|
|
|
|
|
|
Notable features:
|
|
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
|
@item Pick between all credentials on all connected YubiKeys
|
|
|
|
|
@item No mouse interaction required
|
|
|
|
|
@end itemize\n")
|
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|
|
2019-04-18 09:32:37 +00:00
|
|
|
|
(define-public libu2f-host
|
|
|
|
|
(package
|
|
|
|
|
(name "libu2f-host")
|
2019-05-20 02:08:46 +00:00
|
|
|
|
(version "1.1.10")
|
2019-04-18 09:32:37 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(string-append
|
|
|
|
|
"https://developers.yubico.com"
|
|
|
|
|
"/libu2f-host/Releases/libu2f-host-" version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2019-05-20 02:08:46 +00:00
|
|
|
|
"0vrivl1dwql6nfi48z6dy56fwy2z13d7abgahgrs2mcmqng7hra2"))))
|
2019-04-18 09:32:37 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2023-04-20 20:15:59 +00:00
|
|
|
|
(list #:configure-flags
|
|
|
|
|
#~(list "--enable-gtk-doc"
|
|
|
|
|
(string-append "--with-udevrulesdir=" #$output
|
|
|
|
|
"/lib/udev/rules.d"))))
|
|
|
|
|
(inputs (list json-c-0.13 hidapi))
|
2019-04-18 09:32:37 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list help2man
|
|
|
|
|
gengetopt
|
|
|
|
|
pkg-config
|
|
|
|
|
gtk-doc
|
|
|
|
|
docbook-xml-4.3
|
2023-04-20 20:15:59 +00:00
|
|
|
|
eudev
|
|
|
|
|
libxml2)) ;for XML_CATALOG_FILES
|
2019-04-18 09:32:37 +00:00
|
|
|
|
(home-page "https://developers.yubico.com/libu2f-host/")
|
|
|
|
|
;; TRANSLATORS: The U2F protocol has a "server side" and a "host side".
|
|
|
|
|
(synopsis "U2F host-side C library and tool")
|
|
|
|
|
(description
|
|
|
|
|
"Libu2f-host provides a C library and command-line tool that implements
|
|
|
|
|
the host-side of the Universal 2nd Factor (U2F) protocol. There are APIs to
|
|
|
|
|
talk to a U2F device and perform the U2F Register and U2F Authenticate
|
|
|
|
|
operations.")
|
|
|
|
|
;; Most files are LGPLv2.1+, but some files are GPLv3+.
|
|
|
|
|
(license (list license:lgpl2.1+ license:gpl3+))))
|
2019-04-18 09:50:33 +00:00
|
|
|
|
|
2019-10-27 06:01:00 +00:00
|
|
|
|
(define-public libu2f-server
|
|
|
|
|
(package
|
|
|
|
|
(name "libu2f-server")
|
|
|
|
|
(version "1.1.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 20:53:28 +00:00
|
|
|
|
(url "https://github.com/Yubico/libu2f-server")
|
2019-10-27 06:01:00 +00:00
|
|
|
|
(commit (string-append "libu2f-server-" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1nmsfq372zza5y6j13ydincjf324bwfcjg950vykh166xkp6wiic"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list "--enable-gtk-doc"
|
|
|
|
|
"--enable-tests")))
|
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list json-c-0.13 libressl))
|
2019-10-27 06:01:00 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list autoconf
|
|
|
|
|
automake
|
|
|
|
|
libtool
|
|
|
|
|
check
|
|
|
|
|
gengetopt
|
|
|
|
|
help2man
|
|
|
|
|
pkg-config
|
|
|
|
|
gtk-doc
|
|
|
|
|
which))
|
2019-10-27 06:01:00 +00:00
|
|
|
|
(home-page "https://developers.yubico.com/libu2f-server/")
|
|
|
|
|
;; TRANSLATORS: The U2F protocol has a "server side" and a "host side".
|
|
|
|
|
(synopsis "U2F server-side C library")
|
|
|
|
|
(description
|
|
|
|
|
"This is a C library that implements the server-side of the
|
|
|
|
|
@dfn{Universal 2nd Factor} (U2F) protocol. More precisely, it provides an API
|
|
|
|
|
for generating the JSON blobs required by U2F devices to perform the U2F
|
|
|
|
|
Registration and U2F Authentication operations, and functionality for
|
|
|
|
|
verifying the cryptographic operations.")
|
|
|
|
|
(license license:bsd-2)))
|
|
|
|
|
|
2019-10-27 16:04:06 +00:00
|
|
|
|
(define-public pam-u2f
|
|
|
|
|
(package
|
|
|
|
|
(name "pam-u2f")
|
|
|
|
|
(version "1.0.8")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 20:53:28 +00:00
|
|
|
|
(url "https://github.com/Yubico/pam-u2f")
|
2019-10-27 16:04:06 +00:00
|
|
|
|
(commit (string-append "pam_u2f-" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"04d9davyi33gqbvga1rvh9fijp6f16mx2xmnn4n61rnhcn2jac98"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list (string-append "--with-pam-dir="
|
|
|
|
|
(assoc-ref %outputs "out") "/lib/security"))))
|
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list libu2f-host libu2f-server linux-pam))
|
2019-10-27 16:04:06 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list autoconf automake libtool asciidoc pkg-config))
|
2019-10-27 16:04:06 +00:00
|
|
|
|
(home-page "https://developers.yubico.com/pam-u2f/")
|
|
|
|
|
(synopsis "PAM module for U2F authentication")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides a module implementing PAM over U2F, providing an
|
|
|
|
|
easy way to integrate the YubiKey (or other U2F compliant authenticators) into
|
|
|
|
|
your existing infrastructure.")
|
|
|
|
|
(license license:bsd-2)))
|
|
|
|
|
|
2019-04-18 09:50:33 +00:00
|
|
|
|
(define-public python-fido2
|
|
|
|
|
(package
|
|
|
|
|
(name "python-fido2")
|
2023-07-14 16:13:53 +00:00
|
|
|
|
(version "1.1.1")
|
2019-04-18 09:50:33 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(string-append
|
|
|
|
|
"https://github.com/Yubico/python-fido2/releases/download/"
|
|
|
|
|
version "/fido2-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2023-07-14 16:13:53 +00:00
|
|
|
|
"1hwz0xagkmy6hhcyfl66dxf2vfa69lqqqjrv70vw7harik59bi2x"))
|
2019-04-18 09:50:33 +00:00
|
|
|
|
(snippet
|
|
|
|
|
;; Remove bundled dependency.
|
2022-01-10 14:03:51 +00:00
|
|
|
|
'(delete-file "fido2/public_suffix_list.dat"))))
|
2023-07-14 16:13:53 +00:00
|
|
|
|
(build-system pyproject-build-system)
|
2019-04-18 09:50:33 +00:00
|
|
|
|
(arguments
|
2023-07-14 16:13:53 +00:00
|
|
|
|
(list
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'install-public-suffix-list
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(copy-file
|
|
|
|
|
(search-input-file inputs
|
|
|
|
|
(string-append
|
|
|
|
|
"/share/public-suffix-list-"
|
|
|
|
|
#$(package-version public-suffix-list)
|
|
|
|
|
"/public_suffix_list.dat"))
|
|
|
|
|
"fido2/public_suffix_list.dat"))))))
|
2019-04-18 09:50:33 +00:00
|
|
|
|
(propagated-inputs
|
2023-07-14 16:13:53 +00:00
|
|
|
|
(list python-cryptography python-pyscard))
|
2019-04-18 09:50:33 +00:00
|
|
|
|
(native-inputs
|
2023-07-14 16:13:53 +00:00
|
|
|
|
(list python-poetry-core
|
|
|
|
|
python-pytest
|
|
|
|
|
public-suffix-list))
|
2019-04-18 09:50:33 +00:00
|
|
|
|
(home-page "https://github.com/Yubico/python-fido2")
|
|
|
|
|
(synopsis "Python library for communicating with FIDO devices over USB")
|
|
|
|
|
(description
|
|
|
|
|
"This Python library provides functionality for communicating with a Fast
|
|
|
|
|
IDentity Online (FIDO) device over Universal Serial Bus (USB) as well as
|
|
|
|
|
verifying attestation and assertion signatures. It aims to support the FIDO
|
|
|
|
|
Universal 2nd Factor (U2F) and FIDO 2.0 protocols for communicating with a USB
|
|
|
|
|
authenticator via the Client-to-Authenticator Protocol (CTAP 1 and 2). In
|
|
|
|
|
addition to this low-level device access, classes defined in the
|
|
|
|
|
@code{fido2.client} and @code{fido2.server} modules implement higher level
|
|
|
|
|
operations which are useful when interfacing with an Authenticator, or when
|
|
|
|
|
implementing a Relying Party.")
|
|
|
|
|
;; python-fido2 contains some derivative files originally from pyu2f
|
|
|
|
|
;; (https://github.com/google/pyu2f). These files are licensed under the
|
|
|
|
|
;; Apache License, version 2.0. The maintainers have customized these
|
|
|
|
|
;; files for internal use, so they are not really a bundled dependency.
|
|
|
|
|
(license (list license:bsd-2 license:asl2.0))))
|
|
|
|
|
|
2019-04-18 10:21:41 +00:00
|
|
|
|
(define-public python-yubikey-manager
|
|
|
|
|
(package
|
|
|
|
|
(name "python-yubikey-manager")
|
2023-07-14 16:14:27 +00:00
|
|
|
|
(version "5.1.1")
|
2019-04-18 10:21:41 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://developers.yubico.com/yubikey-manager/Releases"
|
2023-07-14 16:14:27 +00:00
|
|
|
|
"/yubikey_manager-" version ".tar.gz"))
|
2019-04-18 10:21:41 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2023-07-14 16:14:27 +00:00
|
|
|
|
"1kma08rxvpzn2gf8b9vxyyb2pvrakm7hhpdmbnb54nwbdnbxp1v4"))))
|
|
|
|
|
(build-system pyproject-build-system)
|
2019-04-18 10:21:41 +00:00
|
|
|
|
(propagated-inputs
|
2023-07-14 16:14:27 +00:00
|
|
|
|
(list python-click
|
2021-12-13 16:18:24 +00:00
|
|
|
|
python-cryptography
|
2023-07-14 16:14:27 +00:00
|
|
|
|
python-fido2
|
|
|
|
|
python-keyring
|
2021-12-13 16:18:24 +00:00
|
|
|
|
python-pyopenssl
|
2023-07-14 16:14:27 +00:00
|
|
|
|
python-pyscard
|
|
|
|
|
python-pyusb))
|
2019-04-18 10:21:41 +00:00
|
|
|
|
(inputs
|
2022-01-10 14:04:39 +00:00
|
|
|
|
(list pcsc-lite))
|
2019-04-18 10:21:41 +00:00
|
|
|
|
(native-inputs
|
2023-07-14 16:14:27 +00:00
|
|
|
|
(list python-makefun
|
|
|
|
|
python-poetry-core
|
|
|
|
|
python-pytest
|
|
|
|
|
swig))
|
2019-04-18 10:21:41 +00:00
|
|
|
|
(home-page "https://developers.yubico.com/yubikey-manager/")
|
|
|
|
|
(synopsis "Command line tool and library for configuring a YubiKey")
|
|
|
|
|
(description
|
|
|
|
|
"Python library and command line tool for configuring a YubiKey. Note
|
|
|
|
|
that after installing this package, you might still need to add appropriate
|
|
|
|
|
udev rules to your system configuration to be able to configure the YubiKey as
|
|
|
|
|
an unprivileged user.")
|
|
|
|
|
(license license:bsd-2)))
|
2021-05-31 23:55:34 +00:00
|
|
|
|
|
2023-08-08 02:51:33 +00:00
|
|
|
|
(define-public yubikey-manager-qt
|
|
|
|
|
(package
|
|
|
|
|
(name "yubikey-manager-qt")
|
|
|
|
|
(version "1.2.5")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://developers.yubico.com/" name
|
|
|
|
|
"/Releases/" name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1qjp9p7i6957lf6ycwwz0178nmjgdyydb2f235bkin0pfm3rxcp9"))))
|
|
|
|
|
(build-system qt-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:tests? #f ;no test suite
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-paths
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "ykman-gui/deployment.pri"
|
|
|
|
|
(("/usr/bin")
|
|
|
|
|
(string-append #$output "/bin")))))
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "qmake")))
|
|
|
|
|
(add-after 'install 'install-desktop-resources
|
|
|
|
|
(lambda _
|
|
|
|
|
(let ((datadir (string-append #$output "/share")))
|
|
|
|
|
(with-directory-excursion "resources"
|
|
|
|
|
(install-file "icons/ykman.png"
|
|
|
|
|
(string-append datadir "/pixmaps"))
|
|
|
|
|
(install-file "com.yubico.yubikey_manager.metainfo.xml"
|
|
|
|
|
(string-append datadir "/metainfo"))
|
|
|
|
|
(install-file "ykman-gui.desktop"
|
|
|
|
|
(string-append datadir "/applications"))))))
|
|
|
|
|
(add-after 'qt-wrap 'wrap-more
|
|
|
|
|
(lambda _
|
|
|
|
|
(wrap-program (string-append #$output "/bin/ykman-gui")
|
|
|
|
|
;; Wrap PYTHONPATH so that pyotherside can find the
|
|
|
|
|
;; yubikey-manager library.
|
|
|
|
|
`("GUIX_PYTHONPATH" prefix
|
|
|
|
|
(,(getenv "GUIX_PYTHONPATH")))))))))
|
|
|
|
|
(native-inputs (list python-wrapper))
|
|
|
|
|
(inputs (list pyotherside-for-qt5
|
|
|
|
|
python-yubikey-manager
|
|
|
|
|
qtdeclarative-5
|
|
|
|
|
qtgraphicaleffects
|
|
|
|
|
qtquickcontrols-5
|
|
|
|
|
qtquickcontrols2-5
|
|
|
|
|
qtsvg-5))
|
|
|
|
|
(home-page "https://developers.yubico.com/yubikey-manager-qt/")
|
|
|
|
|
(synopsis "GUI for configuring any YubiKey over all USB interfaces")
|
|
|
|
|
(description "YubiKey Manager (Qt) is a graphical application for
|
|
|
|
|
configuring any YubiKey over all USB interfaces. For a CLI alternative, refer
|
|
|
|
|
to the @code{python-yubikey-manager} package.")
|
|
|
|
|
(license license:bsd-2)))
|
|
|
|
|
|
2022-02-05 22:25:44 +00:00
|
|
|
|
(define-public libnitrokey
|
|
|
|
|
(package
|
|
|
|
|
(name "libnitrokey")
|
2023-02-12 03:59:26 +00:00
|
|
|
|
(version "3.8")
|
2022-02-05 22:25:44 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/Nitrokey/libnitrokey")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2023-02-12 03:59:26 +00:00
|
|
|
|
"1b95l979y353rli54a79z18iya9bza83cymcjpndr01q1pb134zm"))))
|
2022-02-05 22:25:44 +00:00
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; These tests do not require any device to be connected
|
|
|
|
|
'(#:configure-flags (list "-DCOMPILE_OFFLINE_TESTS=ON")))
|
2022-09-16 00:08:21 +00:00
|
|
|
|
(native-inputs (list catch2 doxygen graphviz pkg-config))
|
2022-02-05 22:25:44 +00:00
|
|
|
|
(inputs (list hidapi libusb))
|
|
|
|
|
(home-page "https://github.com/Nitrokey/libnitrokey")
|
|
|
|
|
(synopsis "Communication library for Nitrokey")
|
2023-02-12 03:59:26 +00:00
|
|
|
|
(description "This package provides a communication library for Nitrokey.")
|
2022-02-05 22:25:44 +00:00
|
|
|
|
(license license:lgpl3+)))
|
|
|
|
|
|
2022-02-05 22:26:36 +00:00
|
|
|
|
(define-public cppcodec
|
|
|
|
|
(package
|
|
|
|
|
(name "cppcodec")
|
|
|
|
|
(version "0.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/tplgy/cppcodec")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0z39f8w0zvra874az0f67ck1al9kbpaidpilggbl8jnfs05010ck"))))
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:configure-flags (list "-DBUILD_TESTING=on")))
|
2022-07-19 20:52:05 +00:00
|
|
|
|
(native-inputs (list pkg-config qttools-5))
|
2022-09-16 00:08:21 +00:00
|
|
|
|
(inputs (list catch2))
|
2022-02-05 22:26:36 +00:00
|
|
|
|
(home-page "https://github.com/tplgy/cppcodec")
|
|
|
|
|
(synopsis "Header library to encode/decode base64, base64url, etc.")
|
|
|
|
|
(description "This package provides library to encode/decode base64,
|
|
|
|
|
base64url, base32, base32hex and hex.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2022-02-05 22:27:06 +00:00
|
|
|
|
(define-public nitrokey-app
|
|
|
|
|
(package
|
|
|
|
|
(name "nitrokey-app")
|
|
|
|
|
(version "1.4.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/Nitrokey/nitrokey-app")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1imbvaf0yncz36ckjr99x94jwg2hnid49hsiqlxsv7ccxgk058bk"))))
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f)) ;no test suite
|
2022-07-19 20:52:05 +00:00
|
|
|
|
(native-inputs (list pkg-config qttools-5))
|
2022-02-05 22:27:06 +00:00
|
|
|
|
(inputs (list cppcodec
|
|
|
|
|
hidapi
|
|
|
|
|
libnitrokey
|
|
|
|
|
libusb
|
|
|
|
|
qtbase-5
|
2022-07-17 05:11:46 +00:00
|
|
|
|
qtsvg-5))
|
2022-02-05 22:27:06 +00:00
|
|
|
|
(home-page "https://github.com/Nitrokey/nitrokey-app")
|
|
|
|
|
(synopsis "GUI tool for Nitrokey devices")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides GUI tool that interfaces with Nitrokey Pro
|
|
|
|
|
v0.7/v0.8 and Nitrokey Storage devices.")
|
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|
|
2021-05-31 23:55:34 +00:00
|
|
|
|
(define-public nitrocli
|
|
|
|
|
(package
|
|
|
|
|
(name "nitrocli")
|
|
|
|
|
(version "0.4.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (crate-uri "nitrocli" version))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1djspfvcqjipg17v8hkph8xrhkdg1xqjhq5jk1sr8vr750yavidy"))))
|
|
|
|
|
(build-system cargo-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ;; 2/164 tests fail, nitrocli-ext tests failing
|
|
|
|
|
#:cargo-inputs
|
|
|
|
|
(("rust-anyhow" ,rust-anyhow-1)
|
|
|
|
|
("rust-base32" ,rust-base32-0.4)
|
|
|
|
|
("rust-directories" ,rust-directories-3)
|
|
|
|
|
("rust-envy" ,rust-envy-0.4)
|
|
|
|
|
("rust-libc-0.2" ,rust-libc-0.2)
|
|
|
|
|
("rust-merge" ,rust-merge-0.1)
|
|
|
|
|
("rust-nitrokey" ,rust-nitrokey-0.9)
|
|
|
|
|
("rust-progressing" ,rust-progressing-3)
|
|
|
|
|
("rust-serde" ,rust-serde-1)
|
|
|
|
|
("rust-structopt" ,rust-structopt-0.3)
|
|
|
|
|
("rust-termion" ,rust-termion-1)
|
|
|
|
|
("rust-toml" ,rust-toml-0.5))
|
|
|
|
|
#:cargo-development-inputs
|
|
|
|
|
(("rust-nitrokey-test" ,rust-nitrokey-test-0.5)
|
|
|
|
|
("rust-nitrokey-test-state" ,rust-nitrokey-test-state-0.1)
|
|
|
|
|
("rust-regex" ,rust-regex-1)
|
|
|
|
|
("rust-tempfile" ,rust-tempfile-3))))
|
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list hidapi gnupg))
|
2021-05-31 23:55:34 +00:00
|
|
|
|
(home-page "https://github.com/d-e-s-o/nitrocli")
|
|
|
|
|
(synopsis "Command line tool for Nitrokey devices")
|
|
|
|
|
(description
|
|
|
|
|
"nitrocli is a program that provides a command line interface
|
|
|
|
|
for interaction with Nitrokey Pro, Nitrokey Storage, and Librem Key
|
|
|
|
|
devices.")
|
|
|
|
|
(license license:gpl3+)))
|
2021-06-15 15:37:21 +00:00
|
|
|
|
|
|
|
|
|
(define-public ausweisapp2
|
|
|
|
|
(package
|
|
|
|
|
(name "ausweisapp2")
|
|
|
|
|
(version "1.22.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/Governikus/AusweisApp2/releases"
|
|
|
|
|
"/download/" version "/AusweisApp2-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1qh1m057va7njs3yk0s31kwsvv44fjlsdac6lhiw5npcwssgjn8l"))))
|
|
|
|
|
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(native-inputs
|
2022-07-19 20:52:05 +00:00
|
|
|
|
(list pkg-config qttools-5))
|
2021-06-15 15:37:21 +00:00
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list qtbase-5
|
2022-07-17 05:11:46 +00:00
|
|
|
|
qtsvg-5
|
2022-07-18 01:03:18 +00:00
|
|
|
|
qtdeclarative-5
|
2022-07-18 04:06:03 +00:00
|
|
|
|
qtwebsockets-5
|
2021-12-13 16:18:24 +00:00
|
|
|
|
qtgraphicaleffects
|
2022-07-18 03:49:07 +00:00
|
|
|
|
qtquickcontrols2-5
|
2021-12-13 16:18:24 +00:00
|
|
|
|
pcsc-lite
|
|
|
|
|
openssl))
|
2021-06-15 15:37:21 +00:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((guix build cmake-build-system)
|
|
|
|
|
(guix build qt-utils)
|
|
|
|
|
(guix build utils))
|
|
|
|
|
#:imported-modules (,@%cmake-build-system-modules
|
|
|
|
|
(guix build qt-utils))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'install 'wrap-qt
|
2021-07-03 12:58:39 +00:00
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(wrap-qt-program "AusweisApp2" #:output out #:inputs inputs)))))))
|
2021-06-15 15:37:21 +00:00
|
|
|
|
(home-page "https://github.com/Governikus/AusweisApp2")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Authentication program for German ID cards and residence permits")
|
|
|
|
|
(description
|
|
|
|
|
"This application is developed and issued by the German government to be
|
|
|
|
|
used for online authentication with electronic German ID cards and residence
|
|
|
|
|
titles. To use this app, a supported RFID card reader or NFC-enabled smart
|
|
|
|
|
phone is required.")
|
|
|
|
|
(license license:eupl1.2)))
|
2021-11-05 17:59:27 +00:00
|
|
|
|
|
|
|
|
|
(define-public libfido2
|
|
|
|
|
(package
|
|
|
|
|
(name "libfido2")
|
2022-11-21 16:59:52 +00:00
|
|
|
|
(version "1.12.0")
|
2021-11-05 17:59:27 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
2022-08-12 18:45:06 +00:00
|
|
|
|
(url "https://github.com/Yubico/libfido2")
|
2021-11-05 17:59:27 +00:00
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
2022-11-21 16:59:52 +00:00
|
|
|
|
(sha256 (base32 "123rysl21bmgk6rmpgg5s21a5ksmxnn1hc32ws88h7z0q4icvj87"))))
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(native-inputs (list pkg-config))
|
2022-03-27 13:00:03 +00:00
|
|
|
|
(inputs (list eudev libcbor openssl zlib))
|
2021-11-05 17:59:27 +00:00
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
2022-11-09 09:53:38 +00:00
|
|
|
|
(list
|
2022-11-21 16:59:52 +00:00
|
|
|
|
#:configure-flags
|
|
|
|
|
#~(list (string-append
|
2022-03-27 13:00:04 +00:00
|
|
|
|
"-DPKG_CONFIG_EXECUTABLE="
|
|
|
|
|
(search-input-file %build-inputs
|
|
|
|
|
(string-append
|
2022-11-21 16:59:52 +00:00
|
|
|
|
"/bin/" #$(pkg-config-for-target))))
|
|
|
|
|
(string-append "-DUDEV_RULES_DIR=" #$output "/lib/udev/rules.d"))
|
|
|
|
|
;; regress tests enabled only for debug builds
|
|
|
|
|
#:tests? #f))
|
2021-11-05 17:59:27 +00:00
|
|
|
|
(synopsis "Library functionality and command-line tools for FIDO devices")
|
|
|
|
|
(description "libfido2 provides library functionality and command-line
|
|
|
|
|
tools to communicate with a FIDO device over USB, and to verify attestation
|
|
|
|
|
and assertion signatures.
|
|
|
|
|
|
|
|
|
|
libfido2 supports the FIDO U2F (CTAP 1) and FIDO 2.0 (CTAP 2) protocols.")
|
|
|
|
|
(license license:bsd-2)
|
|
|
|
|
(home-page "https://github.com/Yubico/libfido2")))
|
2022-07-24 00:09:14 +00:00
|
|
|
|
|
|
|
|
|
(define-public cardpeek
|
|
|
|
|
(package
|
|
|
|
|
(name "cardpeek")
|
|
|
|
|
(version "0.8.4")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/L1L1/cardpeek")
|
|
|
|
|
(commit (string-append "cardpeek-" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1ighpl7nvcvwnsd6r5h5n9p95kclwrq99hq7bry7s53yr57l6588"))))
|
|
|
|
|
(inputs (list curl
|
|
|
|
|
gtk+
|
|
|
|
|
lua-5.2
|
|
|
|
|
openssl
|
|
|
|
|
pcsc-lite
|
|
|
|
|
readline))
|
|
|
|
|
(native-inputs (list autoconf
|
|
|
|
|
automake
|
|
|
|
|
`(,glib "bin") ;for glib-compile-resources
|
|
|
|
|
libtool
|
|
|
|
|
pkg-config))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(synopsis "Tool to read the contents of various smart cards")
|
|
|
|
|
(description
|
|
|
|
|
"Cardpeek is a graphical tool to read the contents of ISO7816 smart cards.
|
|
|
|
|
It is extensible with the LUA scripting language.
|
|
|
|
|
|
|
|
|
|
It supports the following type of cards:
|
|
|
|
|
@itemize
|
|
|
|
|
@item Bank cards (VISA, MasterCard, CB and UK Post Office Account cards)
|
|
|
|
|
@item Passports and the Belgian identity card
|
|
|
|
|
@item Transport cards (Navigo, MOBIB, RavKav and VIVA cards)
|
|
|
|
|
@item Older GSM SIM cards without USIM data
|
|
|
|
|
@item Vitale 2 Health card
|
|
|
|
|
@item Moneo Electronic purse card
|
|
|
|
|
@item Driver Tachograph cards
|
|
|
|
|
@item OpenPGP Cards (beta)
|
|
|
|
|
@end itemize
|
|
|
|
|
It also has limited support for Mifare Classic compatible cards (Thalys card)")
|
|
|
|
|
(license license:gpl3+)
|
|
|
|
|
(home-page "http://pannetrat.com/Cardpeek")))
|
2023-03-21 11:26:51 +00:00
|
|
|
|
|
|
|
|
|
(define-public pcsc-cyberjack
|
|
|
|
|
(package
|
|
|
|
|
(name "pcsc-cyberjack")
|
|
|
|
|
(version "3.99.5final.sp15")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri "https://support.reiner-sct.de/downloads/LINUX/V3.99.5_SP15/pcsc-cyberjack_3.99.5final.SP15.tar.bz2")
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0yj6plgb245r218v6lgdabb3422hxyrw8rrpf5b8fwah4j1w5dxc"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:configure-flags
|
|
|
|
|
#~(list (string-append "--with-usbdropdir=" #$output "/pcsc/drivers")
|
|
|
|
|
(string-append "--bindir=" #$output:tools "/bin"))
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(add-after 'install 'install-tools
|
|
|
|
|
(lambda _ (invoke "make" "-C" "tools/cjflash" "install"))))))
|
|
|
|
|
(native-inputs (list pkg-config))
|
|
|
|
|
(inputs (list pcsc-lite libusb))
|
|
|
|
|
(outputs '("out" "tools"))
|
|
|
|
|
(synopsis "PC/SC driver for cyberJack chipcard readers")
|
|
|
|
|
(description
|
|
|
|
|
"This package includes the IFD driver for the cyberJack
|
|
|
|
|
contactless (RFID) and contact USB chipcard readers.")
|
|
|
|
|
(home-page "http://www.reiner-sct.com/")
|
|
|
|
|
(license license:lgpl2.1+)))
|