diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-01-04 20:46:16 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-02-20 13:57:25 +0200 |
commit | 84d49b4dff7dd588aa4849c12684371685ba64cc (patch) | |
tree | 2608ba36c65bd908714cd311289257fbdc3e9666 /gnu/packages/crates-apple.scm | |
parent | cf0af0603193d9454119792620f63a930b54d190 (diff) | |
download | guix-84d49b4dff7dd588aa4849c12684371685ba64cc.tar.gz guix-84d49b4dff7dd588aa4849c12684371685ba64cc.zip |
gnu: rust-system-configuration: Move to (gnu packages crates-apple).
* gnu/packages/crates-io.scm (rust-system-configuration-0.5,
rust-system-configuration-sys-0.5): Move from here ...
* gnu/packages/crates-apple.scm: ... to here.
Change-Id: Ia3794ce3ef56520dac26b44acfc91da7f7e3031f
Diffstat (limited to 'gnu/packages/crates-apple.scm')
-rw-r--r-- | gnu/packages/crates-apple.scm | 45 |
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)))) |