]> infiniteadaptability.org Git - packages/commitdiff
totp: add v1.0.0 master
authoralex <[email protected]>
Sat, 18 Jan 2025 17:30:21 +0000 (09:30 -0800)
committeralex <[email protected]>
Sat, 18 Jan 2025 17:30:21 +0000 (09:30 -0800)
infiniteadaptability/totp.scm [new file with mode: 0644]

diff --git a/infiniteadaptability/totp.scm b/infiniteadaptability/totp.scm
new file mode 100644 (file)
index 0000000..064ed4d
--- /dev/null
@@ -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