[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/09: gnu: Add zxcvbn-c.
From: |
guix-commits |
Subject: |
03/09: gnu: Add zxcvbn-c. |
Date: |
Tue, 26 Mar 2024 04:55:38 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 25802a183a4d0cc6be5fe402b455cf19eae27a93
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Mar 25 19:29:46 2024 +0200
gnu: Add zxcvbn-c.
* gnu/packages/password-utils.scm (zxcvbn-c): New variable.
Change-Id: I160575fb4b7ce9fe7a5bd5bb5322c78376f8d259
---
gnu/packages/password-utils.scm | 39 ++++++++++++++++++++++++++++++++++++++-
1 file changed, 38 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 97561316f6..1dbf138ad4 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015 Steve Sprang <scs@stevesprang.com>
-;;; Copyright © 2015-2023 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2015-2024 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2015 Aljosha Papsch <misc@rpapsch.de>
;;; Copyright © 2016 Christine Lemmer-Webber <cwebber@dustycloud.org>
;;; Copyright © 2016 Jessica Tallon <tsyesika@tsyesika.se>
@@ -1429,6 +1429,43 @@ function. Since they all work with @code{STDIN} and
@code{STDOUT} you can
group them into chains.")
(license license:expat)))
+(define-public zxcvbn-c
+ (package
+ (name "zxcvbn-c")
+ (version "2.5")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tsyrogit/zxcvbn-c")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1clm9sxz6q360xk6vq5hi3b0mq374nl958mjcfxk94l692zrpaj4"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list #:make-flags
+ #~(list (string-append "CC=" #$(cc-for-target))
+ (string-append "CXX=" #$(cxx-for-target)))
+ #:test-target "test"
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure)
+ (replace 'install
+ (lambda _
+ (install-file "zxcvbn.h" (string-append #$output
"/include"))
+ (for-each (lambda (file)
+ (install-file file
+ (string-append #$output "/lib")))
+ (find-files "." "libzxcvbn\\.so.*")))))))
+ (home-page "https://github.com/tsyrogit/zxcvbn-c")
+ (synopsis "C/C++ implementation of the zxcvbn password strength
estimation")
+ (description "This library is a C/C++ implementation of the zxcvbn password
+strength estimator. It provides functions to rate password strength, by
+comparing the password to several word lists, including English first and last
+names.")
+ (license license:expat)))
+
(define-public hydra
(package
(name "hydra")
- branch master updated (f3a9c701ac -> 7dfb3155fc), guix-commits, 2024/03/26
- 05/09: gnu: psmisc: Update to 23.7., guix-commits, 2024/03/26
- 07/09: gnu: e2fsprogs: Update to 1.47.0., guix-commits, 2024/03/26
- 09/09: gnu: xterm: Update to 390., guix-commits, 2024/03/26
- 08/09: gnu: dunst: Update to 1.10.0., guix-commits, 2024/03/26
- 03/09: gnu: Add zxcvbn-c.,
guix-commits <=
- 01/09: gnu: libcmis: Update to 0.6.2., guix-commits, 2024/03/26
- 04/09: gnu: mutt: Update to 2.2.13., guix-commits, 2024/03/26
- 06/09: gnu: usbutils: Update to 017., guix-commits, 2024/03/26
- 02/09: gnu: orcus: Update to 0.19.2., guix-commits, 2024/03/26