gnu: Add rust-gethostname-0.3.
* gnu/packages/crates-io.scm (rust-gethostname-0.3): New variable. (rust-gethostname-0.2): Inherit from rust-gethostname-0.3. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>master
parent
a9768093cc
commit
c2285b733a
|
@ -28184,8 +28184,35 @@ Rust.")
|
||||||
interfaces on the system.")
|
interfaces on the system.")
|
||||||
(license (list license:expat license:bsd-3))))
|
(license (list license:expat license:bsd-3))))
|
||||||
|
|
||||||
|
(define-public rust-gethostname-0.3
|
||||||
|
(package
|
||||||
|
(name "rust-gethostname")
|
||||||
|
(version "0.3.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (crate-uri "gethostname" version))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32 "0xy1wbx5k2bzi4cbaqj9wqgqsbn4f8pm6nsm1d86mibk66xd8rdv"))))
|
||||||
|
(build-system cargo-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:cargo-test-flags
|
||||||
|
'("--release" "--"
|
||||||
|
;; Not all files included
|
||||||
|
"--skip=gethostname_matches_system_hostname")
|
||||||
|
#:cargo-inputs
|
||||||
|
(("rust-libc" ,rust-libc-0.2)
|
||||||
|
("rust-winapi" ,rust-winapi-0.3))))
|
||||||
|
(home-page "https://github.com/swsnr/gethostname.rs")
|
||||||
|
(synopsis "Gethostname for all platforms")
|
||||||
|
(description "This library provides @code{gethostname()} for all
|
||||||
|
platforms.")
|
||||||
|
(license license:asl2.0)))
|
||||||
|
|
||||||
(define-public rust-gethostname-0.2
|
(define-public rust-gethostname-0.2
|
||||||
(package
|
(package
|
||||||
|
(inherit rust-gethostname-0.3)
|
||||||
(name "rust-gethostname")
|
(name "rust-gethostname")
|
||||||
(version "0.2.1")
|
(version "0.2.1")
|
||||||
(source
|
(source
|
||||||
|
@ -28195,19 +28222,13 @@ interfaces on the system.")
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0a609j9dhk816il2f2a01avvi5sqzxh0p38nxwrja7dcpybf54p6"))))
|
(base32 "0a609j9dhk816il2f2a01avvi5sqzxh0p38nxwrja7dcpybf54p6"))))
|
||||||
(build-system cargo-build-system)
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; test panics
|
`(#:tests? #f ; test panics
|
||||||
#:cargo-inputs
|
#:cargo-inputs
|
||||||
(("rust-libc" ,rust-libc-0.2)
|
(("rust-libc" ,rust-libc-0.2)
|
||||||
("rust-winapi" ,rust-winapi-0.3))
|
("rust-winapi" ,rust-winapi-0.3))
|
||||||
#:cargo-development-inputs
|
#:cargo-development-inputs
|
||||||
(("rust-pretty-assertions" ,rust-pretty-assertions-0.6))))
|
(("rust-pretty-assertions" ,rust-pretty-assertions-0.6))))))
|
||||||
(home-page "https://github.com/lunaryorn/gethostname.rs")
|
|
||||||
(synopsis "Gethostname for all platforms")
|
|
||||||
(description "This library provides @code{gethostname()} for all
|
|
||||||
platforms.")
|
|
||||||
(license license:asl2.0)))
|
|
||||||
|
|
||||||
(define-public rust-getopts-0.2
|
(define-public rust-getopts-0.2
|
||||||
(package
|
(package
|
||||||
|
|
Reference in New Issue