Subject: [bug#50368] [PATCH 7/9] gnu: Add rust-fdlimit-0.1.

From: Xinglu Chen <[email-masked]>
Date: Sat, 04 Sep 2021 21:26:21 +0200

On Sat, Sep 04 2021, phodina via Guix-patches via wrote:

> * gnu/packages/crates-io.scm (rust-fdlimit-0.1): New variable.
>
> diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
> index 6f82d15cbe..c77c8c87d1 100644
> --- a/gnu/packages/crates-io.scm
> +++ b/gnu/packages/crates-io.scm
> @@ -16020,6 +16020,33 @@ it.")
>         (("rust-libc" ,rust-libc-0.2)
>          ("rust-winapi" ,rust-winapi-0.3))))))
>
> +(define-public rust-fdlimit-0.1
> +  (package
> +    (name "rust-fdlimit")
> +    (version "0.1.4")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (crate-uri "fdlimit" version))
> +       (file-name
> +        (string-append name "-" version ".tar.gz"))

Nit: Newline isn’t necessary.

> +       (sha256
> +        (base32
> +         "0g30d6gqkrwy8ylwdy7pqm443iq0p5dmnpz4ks41pirl7dclm98d"))))
> +    (build-system cargo-build-system)
> +    (arguments
> +     `(#:skip-build?
> +       #t
> +       #:cargo-inputs
> +       (("rust-libc" ,rust-libc-0.2))))
> +    (home-page
> +     "https://github.com/paritytech/fdlimit")

Likewise.

> +    (synopsis
> +     "Utility crate for raising file descriptors limit for OSX and Linux")

Guix isn’t doesn’t supprot OSX, therefore, I don’t think OSX support
needs to be 

> +    (description
> +     "Utility crate for raising file descriptors limit for OSX and Linux")

The description should consist of one or more complete sentences, see
“16.4.4 Synopses and Descriptions” for more details.