aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/crates-apple.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/crates-apple.scm')
-rw-r--r--gnu/packages/crates-apple.scm45
1 files changed, 45 insertions, 0 deletions
diff --git a/gnu/packages/crates-apple.scm b/gnu/packages/crates-apple.scm
index 03de10a853..5e8e67484c 100644
--- a/gnu/packages/crates-apple.scm
+++ b/gnu/packages/crates-apple.scm
@@ -914,3 +914,48 @@ macOS and iOS.")
#:cargo-inputs
(("rust-core-foundation-sys" ,rust-core-foundation-sys-0.2)
("rust-libc" ,rust-libc-0.2))))))
+
+(define-public rust-system-configuration-0.5
+ (package
+ (name "rust-system-configuration")
+ (version "0.5.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "system-configuration" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1rz0r30xn7fiyqay2dvzfy56cvaa3km74hnbz2d72p97bkf3lfms"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t ; struct `sockaddr_in` has no field named `sin_len`
+ #:cargo-inputs
+ (("rust-bitflags" ,rust-bitflags-1)
+ ("rust-core-foundation" ,rust-core-foundation-0.9)
+ ("rust-system-configuration-sys" ,rust-system-configuration-sys-0.5))))
+ (home-page "https://github.com/mullvad/system-configuration-rs")
+ (synopsis "Bindings to SystemConfiguration framework for macOS")
+ (description
+ "Bindings to @code{SystemConfiguration} framework for @code{macOS}.")
+ (license (list license:expat license:asl2.0))))
+
+(define-public rust-system-configuration-sys-0.5
+ (package
+ (name "rust-system-configuration-sys")
+ (version "0.5.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "system-configuration-sys" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1jckxvdr37bay3i9v52izgy52dg690x5xfg3hd394sv2xf4b2px7"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-core-foundation-sys" ,rust-core-foundation-sys-0.8)
+ ("rust-libc" ,rust-libc-0.2))))
+ (home-page "https://github.com/mullvad/system-configuration-rs")
+ (synopsis "Low level bindings to SystemConfiguration framework for macOS")
+ (description
+ "Low level bindings to @code{SystemConfiguration} framework for @code{macOS}.")
+ (license (list license:expat license:asl2.0))))