Subject: [PATCH] gnu: rust-libudev-sys-0.1: add missing native dependencies

From: [email-masked]
Date: Mon, 07 Oct 2024 04:37:06 +0000

From: emma thompson <[email-masked]>

i noticed while trying to use libudev-sys that the build was failing. the backtrace noted that both pkg-config and libudev were missing. as noted upstream as well (https://github.com/dcuddeback/libudev-sys), udev is required in the build environment.
---
 gnu/packages/crates-io.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c08ccd29fd..e5a92a6d57 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -44,6 +44,7 @@
 ;;; Copyright © 2024 Suhail Singh <[email-masked]>
 ;;; Copyright © 2024 Aaron Covrig <[email-masked]>
 ;;; Copyright © 2024 Nguyễn Gia Phong <[email-masked]>
+;;; Copyright © 2024 emma thompson <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -39773,6 +39774,7 @@ (define-public rust-libudev-sys-0.1
     (arguments
      `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
                        ("rust-pkg-config" ,rust-pkg-config-0.3))))
+    (native-inputs (list pkg-config eudev))
     (home-page "https://github.com/dcuddeback/libudev-sys")
     (synopsis "FFI bindings to libudev")
     (description "This package provides FFI bindings to libudev.")

base-commit: b007cbbfb76aa6e072f1223699e910c45da7e732
-- 
2.46.0