unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#54244] [PATCH] Add libxcrypt
@ 2022-03-04 11:15 Allan Adair
  2022-03-11  0:38 ` bug#54244: " Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Allan Adair @ 2022-03-04 11:15 UTC (permalink / raw)
  To: 54244

[-- Attachment #1: Type: text/plain, Size: 316 bytes --]

I would like to add a libxcrypt package for guix. In several major linux
distributions it has become the default crypt library. I think it is that
case for Debian, Fedora, Gentoo, and perhaps others. In any case, it's
particularly useful for those who want access to numerous hashing
algorithms through crypt calls.

[-- Attachment #2: Type: text/x-patch, Size: 2583 bytes --]

From 2879564bdb9c87f89dcefa07b5e3bdfcd07d9914 Mon Sep 17 00:00:00 2001
From: Allan Adair <allan@adair.no>
Date: Fri, 4 Mar 2022 12:01:42 +0100
Subject: [PATCH] Add libxcrypt

libxcrypt is an extended crypt library for descrypt, md5crypt, bcrypt, and
others.
---
 gnu/packages/crypto.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index f07be01c97..4568196abb 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -22,6 +22,7 @@
 ;;; Copyright © 2021 Ellis Kenyő <me@elken.dev>
 ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
 ;;; Copyright © 2021 Brendan Tildesley <mail@brendan.scot>
+;;; Copyright © 2022 Allan Adair <allan@adair.no>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -73,6 +74,7 @@ (define-module (gnu packages crypto)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages python-check)
+  #:use-module (gnu packages python-crypto)
   #:use-module (gnu packages readline)
   #:use-module (gnu packages search)
   #:use-module (gnu packages serialization)
@@ -1607,3 +1609,37 @@ (define-public b3sum
     ;; Users may choose between these two licenses when redistributing the
     ;; program provided by this package.
     (license (list license:cc0 license:asl2.0))))
+
+(define-public libxcrypt
+  (package
+    (name "libxcrypt")
+    (version "4.4.28")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/besser82/libxcrypt")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0pacj0s1hlv22iz0k2bkysjslc6rbrgmvmsr02qq17lp4d2gw5rs"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("libtool" ,libtool)
+       ("perl" ,perl)
+       ("pkg-config" ,pkg-config)
+       ("python3" ,python-3)
+       ("python-passlib" ,python-passlib)))
+    (synopsis
+     "Extended crypt library for descrypt, md5crypt, bcrypt, and others")
+    (description
+     "libxcrypt is a modern library for one-way hashing of
+passwords. It supports a wide variety of both modern and historical
+hashing methods: yescrypt, gost-yescrypt, scrypt, bcrypt, sha512crypt,
+sha256crypt, md5crypt, SunMD5, sha1crypt, NT, bsdicrypt, bigcrypt, and
+descrypt.")
+    (home-page "https://github.com/besser82/libxcrypt")
+    (license license:lgpl2.1)))
-- 
2.34.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#54244: [PATCH] Add libxcrypt
  2022-03-04 11:15 [bug#54244] [PATCH] Add libxcrypt Allan Adair
@ 2022-03-11  0:38 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2022-03-11  0:38 UTC (permalink / raw)
  To: Allan Adair; +Cc: 54244-done

Hello,

Allan Adair <allan@adair.no> writes:

> I would like to add a libxcrypt package for guix. In several major linux
> distributions it has become the default crypt library. I think it is that
> case for Debian, Fedora, Gentoo, and perhaps others. In any case, it's
> particularly useful for those who want access to numerous hashing
> algorithms through crypt calls.

Thank you. I normalized your commit message, removed labels from
native-inputs, and applied your patch.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-11  0:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-04 11:15 [bug#54244] [PATCH] Add libxcrypt Allan Adair
2022-03-11  0:38 ` bug#54244: " Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).