From 352adc89c3558635851c5ca557bdd71b5eb471a2 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 18 Jan 2025 09:30:21 -0800 Subject: [PATCH] totp: add v1.0.0 --- infiniteadaptability/totp.scm | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 infiniteadaptability/totp.scm diff --git a/infiniteadaptability/totp.scm b/infiniteadaptability/totp.scm new file mode 100644 index 0000000..064ed4d --- /dev/null +++ b/infiniteadaptability/totp.scm @@ -0,0 +1,37 @@ +(define-module (infiniteadaptability totp) + #:use-module (gnu packages autotools) + #:use-module (gnu packages tls) + #:use-module (guix git-download) + #:use-module (guix build-system gnu) + #:use-module ((guix licenses) + #:prefix license:) + #:use-module (guix packages)) + +(define-public totp + (let ((version "1.0.0") + (commit "cb04d87e4b55edbc7dad0b7e27bab7a94af21b6c") + (revision 0)) + (package + (name "totp") + (version (if (zero? revision) version + (string-append version "-" + (number->string revision) "." + (string-take commit 7)))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.infiniteadaptability.org/totp.git") + (commit commit))) + (sha256 + (base32 + "1p73lrgddl67jnyndk2fjx5i0p3zwcbj1nl99dkd2d1xprlgaa32")) + (file-name (string-append "totp-" version "-checkout")))) + (native-inputs (list autoconf automake)) + (inputs (list openssl)) + (build-system gnu-build-system) + (home-page "https://git.infiniteadaptability.org/totp") + (synopsis "totp") + (description "totp") + (license license:unlicense)))) + +totp -- 2.39.5