From 5f01b5d21f688d9725532f35067e92c49ab423b4 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Sat, 5 Feb 2022 23:25:44 +0100 Subject: [PATCH v2 1/3] gnu: Add libnitrokey. * gnu/packages/security-token.scm (libnitrokey): New variable. diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm index 8190e1e1e2..7ea19b13a2 100644 --- a/gnu/packages/security-token.scm +++ b/gnu/packages/security-token.scm @@ -15,6 +15,7 @@ ;;; Copyright © 2021 Dhruvin Gandhi ;;; Copyright © 2021 Ahmad Jarara ;;; Copyright © 2022 John Kehayias +;;; Copyright © 2022 Petr Hodina ;;; ;;; This file is part of GNU Guix. ;;; @@ -723,6 +724,30 @@ (define-public python-yubikey-manager an unprivileged user.") (license license:bsd-2))) +(define-public libnitrokey + (package + (name "libnitrokey") + (version "3.6") + (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 + "0ngrvv61d36vvfwrfg0qxmp2wg18v4aaldwvwzgxvwaysjswhn9r")))) + (build-system cmake-build-system) + (arguments + ;; These tests do not require any device to be connected + '(#:configure-flags (list "-DCOMPILE_OFFLINE_TESTS=ON"))) + (native-inputs (list catch-framework2 doxygen graphviz pkg-config)) + (inputs (list hidapi libusb)) + (home-page "https://github.com/Nitrokey/libnitrokey") + (synopsis "Communication library for Nitrokey") + (description "This packate provides communication library for Nitrokey.") + (license license:lgpl3+))) + (define-public nitrocli (package (name "nitrocli") -- 2.34.0