* gnu/packages/rust.scm (rust-nix-test): New variable. --- gnu/packages/rust.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 1e6bd8672..674570c7d 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -426,3 +426,30 @@ featuring zero allocations, composability, and iterator-like interfaces.") (description "Library for random number generators and other randomness functionality.") (license (list license:expat license:asl2.0)))) + +(define-public rust-nix-test + (package + (name "rust-nix-test") + (version "0.0.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "nix-test" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1g7i9p3lizipyg99swdmkg0jyxm0i3wm2jkf7hrbrkk3k3rbhp9y")))) + (build-system cargo-build-system) + (home-page "https://github.com/carllerche/nix-rust") + (synopsis "Bindings to *nix APIs") + (description + "Nix-test provides the testing helpers for nix. Nix seeks to +provide bindings to various *nix platform APIs. +The goal is to not provide a 100% unified interface, but to +unify what can be while still providing platform specific APIs. + +For many system APIs, Nix provides a safe alternative to the unsafe API +exposed by the libc crate. This is done by wrapping the libc +functionality with types/abstractions that enforce legal/safe usage.") + (license license:expat))) -- 2.11.0