From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: John Soo <jsoo1@asu.edu>
Cc: "Julien Lepiller" <julien@lepiller.eu>,
43929 <43929@debbugs.gnu.org>, "Ludovic Courtès" <ludo@gnu.org>,
zimoun <zimon.toutoune@gmail.com>
Subject: [bug#43929] gnu: Add pijul.
Date: Tue, 16 Feb 2021 10:31:41 +0100 [thread overview]
Message-ID: <87mtw4gxz6.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <875z2tdlfh.fsf_-_@asu.edu> (John Soo's message of "Mon, 15 Feb 2021 14:18:42 -0800")
Hello,
John Soo <jsoo1@asu.edu> writes:
Thank you. I'm adding my grain of salt, if you don't mind!
> +(define-public rust-trust-dns-rustls-0.6
> + (package
> + (inherit rust-trust-dns-rustls-0.7)
> + (name "rust-trust-dns-rustls")
AFAICT, rust-trust-dns-rustls-0.6 already inherits from 0.19, so it is
not strictly necessary to change this inheritance.
> +(define-public rust-yasna-0.1
> + (package
> + (name "rust-yasna")
> + (version "0.1.3")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (crate-uri "yasna" version))
> + (file-name
> + (string-append name "-" version ".tar.gz"))
> + (sha256
> + (base32
> + "1frcd79rzi6dlly7lldjn2avnhfmj6yxrjsgvb2p1k2zbxdzyc9s"))))
> + (build-system cargo-build-system)
> + (arguments
> + `(#:cargo-inputs
> + (("rust-bit-vec" ,rust-bit-vec-0.4)
> + ("rust-chrono" ,rust-chrono-0.4)
> + ("rust-num" ,rust-num-0.1)
> + ("rust-num-bigint" ,rust-num-bigint-0.1))
> + #:cargo-development-inputs
> + (("rust-num-traits" ,rust-num-traits-0.2))))
This should have #:skip-build #t as any non-leaf package.
> +(define-public rust-thrussh-keys-0.11
[...]
> + ("rust-thrussh-libsodium"
> + ,rust-thrussh-libsodium-0.1)
Nitpick: indentation.
> + ("rust-tokio" ,rust-tokio-0.1)
> + ("rust-yasna" ,rust-yasna-0.1))
> + #:cargo-development-inputs
> + (("rust-env-logger" ,rust-env-logger-0.6)
> + ("rust-tempdir" ,rust-tempdir-0.3)
> + ("rust-tokio-uds" ,rust-tokio-uds-0.2))))
See above about #:skip-build?
> + (home-page "https://pijul.org/thrussh")
> + (synopsis
> + "Deal with SSH keys in Rust")
> + (description
> + "This package provides a rust library to deal with SSH keys.
Nitpick: rust -> Rust
> + ("rust-thrussh-libsodium"
> + ,rust-thrussh-libsodium-0.1)
Indentation nitpick and #skip-build again :)
I will not repeat those in the rest of the message.
> + (synopsis
> + "Contains function definitions for the Windows API library advapi32")
s/Contains //
> + (description
> + "Contains function definitions for the Windows API library advapi32.
> +The winapi crate's types and constants has more details about this
> API.")
The description needs to be a complete sentence.
> + (synopsis
> + "Portably retrieve the username of the user running the current thread")
s/Portably //
> + (description
> + "Portably retrieve the user name (and possibly other information in
> +future versions) of the user running the current thread.")
Could you write it as a full sentence?
> +(define-public rust-spmc-0.2
> + (package
> + (inherit rust-spmc-0.3)
> + (name "rust-spmc")
> + (version "0.2.3")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (crate-uri "spmc" version))
> + (file-name (string-append name "-" version ".tar.gz"))
> + (sha256
> + (base32 "1nhbjc65avbb4nffk6b49spbv7rsmmnrppj2qnx39mhwi57spgiw"))))
> + (arguments
> + `(#:tests? #f ;; tests hang
> + #:cargo-development-inputs
> + (("rust-loom" ,rust-loom-0.2))))
> + ;; This package is broken before 0.3
> + ;; Only included for pijul@1
> + (properties `((hidden? . #t)))))
I suggest to not bother and use #:skip-build?
> +(define-public rust-tokio-tls-0.1
> + (package
> + (inherit rust-tokio-tls-0.3)
> + (version "0.1.4")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (crate-uri "tokio-tls" version))
> + (file-name
> + (string-append
> + (package-name rust-tokio-tls-0.3) "-" version ".tar.gz"))
> + (sha256
> + (base32
> + "04yrdscn8m9qza8ms09pqipbmj6x2q64jgm5n3ipy4b0wl24nbvp"))))
> + (arguments
> + `(#:skip-build? #t
> + #:cargo-inputs
> + (("rust-futures" ,rust-futures-0.1)
> + ("rust-native-tls" ,rust-native-tls-0.1)
> + ("rust-tokio-core" ,rust-tokio-core-0.1)
> + ("rust-tokio-io" ,rust-tokio-io-0.1)
> + ("rust-tokio-proto" ,rust-tokio-proto-0.1))
> + #:cargo-development-inputs
> + (("rust-cfg-if" ,rust-cfg-if-0.1)
> + ("rust-env-logger" ,rust-env-logger-0.4)
> + ("rust-hyper" ,rust-hyper-0.11)
> + ("rust-openssl" ,rust-openssl-0.9)
> + ("rust-schannel" ,rust-schannel-0.1)
> + ("rust-security-framework"
> + ,rust-security-framework-0.1)
> + ("rust-tokio-service" ,rust-tokio-service-0.1)
> + ("rust-winapi" ,rust-winapi-0.3))))))
Since you use skip-build?, development inputs are not necessary.
> +(define-public pijul
> + (package
> + (name "pijul")
> + (version "0.12.2")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (crate-uri "pijul" version))
> + (file-name
> + (string-append name "-" version ".tar.gz"))
> + (sha256
> + (base32
> + "12aqpfd2si70qbvfnn9kvznxyd5g5gsb1kk1q52wm077cd03yapr"))))
> + (build-system cargo-build-system)
> + (inputs
> + `(("clang" ,clang)
> + ("libressl" ,libressl)
> + ("libsodium" ,libsodium)
> + ("nettle" ,nettle)
> + ("pkg-config" ,pkg-config)))
Shouldn't pgk-config and clang be native-inputs instead?
Regards,
--
Nicolas Goaziou
prev parent reply other threads:[~2021-02-16 9:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-11 16:58 [bug#43929] gnu: Add pijul John Soo
2020-10-11 17:40 ` Julien Lepiller
2020-10-28 14:57 ` Ludovic Courtès
2020-10-28 15:13 ` John Soo
2020-10-28 15:42 ` zimoun
2020-10-28 17:37 ` Julien Lepiller
2020-10-31 18:15 ` John Soo
2020-11-22 16:34 ` Efraim Flashner
2020-11-22 16:45 ` John Soo
2020-10-31 18:31 ` John Soo
2020-11-05 16:16 ` John Soo
2020-11-25 15:43 ` John Soo
2021-02-15 22:18 ` John Soo
2021-02-16 9:31 ` Nicolas Goaziou [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mtw4gxz6.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=43929@debbugs.gnu.org \
--cc=jsoo1@asu.edu \
--cc=julien@lepiller.eu \
--cc=ludo@gnu.org \
--cc=zimon.toutoune@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).