summary refs log tree commit diff
diff options
context:
space:
mode:
authormuradm <mail@muradm.net>2022-06-15 12:17:36 +0300
committerLars-Dominik Braun <ldb@leibniz-psychology.org>2022-06-17 10:30:38 +0200
commit7943f9f170f099b3cae78cc897d4ac68649d03ee (patch)
tree7364918f3c0a659f16f106083977f4e50a6e2828
parent7f7a075c3debc92168db7dbdf9a2a1ef3156b0ea (diff)
downloadguix-7943f9f170f099b3cae78cc897d4ac68649d03ee.tar.gz
gnu: crates-io: Add rust-pam-sys 0.5.6.
* gnu/packages/crates-io.scm (rust-pam-sys-0.5): New variable

Signed-off-by: Lars-Dominik Braun <ldb@leibniz-psychology.org>
-rw-r--r--gnu/packages/crates-io.scm22
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9be9479e06..2b05683028 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -73071,3 +73071,25 @@ way to convert simple shell commands to windows batch commands.")
     (synopsis "Rust library that quotes, unquotes, and unescapes strings")
     (description "A Rust library quotes, unquotes, and unescapes strings")
     (license license:unlicense)))
+
+(define-public rust-pam-sys-0.5
+  (package
+    (name "rust-pam-sys")
+    (version "0.5.6")
+    (home-page "https://github.com/1wilkens/pam-sys")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "pam-sys" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0d14501d5vybjnzxfjf96321xa5wa36x1xvf02h02zq938qmhj6d"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2))))
+    (inputs `(("linux-pam" ,linux-pam)))
+    (synopsis
+     "Rust FFI wrappers for the Linux Pluggable Authentication Modules (PAM)")
+    (description
+     "This crate uses bindgen to generate the raw FFI definitions for PAM. For a rustified API consider using pam.")
+    (license (list license:expat license:asl2.0))))