Subject: [PATCH 02/13] gnu: packages: Add go-github-com-msteinert-pam

From: Jesse Eisses <[email-masked]>
Date: Wed, 10 Apr 2024 10:09:57 +0200

Change-Id: I2b3ec472f93914a2b1b9682fadc4d6c20b6cd89c
---
 gnu/packages/golang-xyz.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index b82e96045e..61fdf5f020 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -31,6 +31,7 @@
 ;;; Copyright © 2023 Timo Wilken <[email-masked]>
 ;;; Copyright © 2024 Artyom V. Poptsov <[email-masked]>
 ;;; Copyright © 2024 Troy Figiel <[email-masked]>
+;;; Copyright © 2024 Jesse Eisses <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -56,6 +57,7 @@ (define-module (gnu packages golang-xyz)
   #:use-module (guix utils)
   #:use-module (gnu packages)
   #:use-module (gnu packages freedesktop)
+  #:use-module (gnu packages gcc)
   #:use-module (gnu packages golang)
   #:use-module (gnu packages golang-build)
   #:use-module (gnu packages golang-check)
@@ -2123,6 +2125,33 @@ (define-public go-github-com-mreiferson-go-svc
 @url{https://github.com/judwhite/go-svc/raw/master/svc/svc_windows_test.go,here}.")
       (license license:expat))))
 
+(define-public go-github-com-msteinert-pam
+  (package
+    (name "go-github-com-msteinert-pam")
+    (version "1.2.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/msteinert/pam")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1qnr0zxyxny85andq3cbj90clmz2609j8z9mp0zvdyxiwryfhyhj"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:go gccgo-12
+      ;; tests don't work, they require special root set up
+      #:tests? #f
+      #:import-path "github.com/msteinert/pam"))
+    (inputs `(("linux-pam" ,linux-pam)))
+    (propagated-inputs `(("go-golang-org-x-term" ,go-golang-org-x-term)))
+    (home-page "https://github.com/msteinert/pam")
+    (synopsis "Go PAM")
+    (description "Package pam provides a wrapper for the PAM application API.")
+    (license license:bsd-2)))
+
 (define-public go-github-com-multiformats-go-varint
   (package
     (name "go-github-com-multiformats-go-varint")
-- 
2.41.0