diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2022-02-15 20:56:03 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2022-02-15 21:00:03 +0200 |
commit | 7576d5cb43be8387b57175c10f542f5503b2e6f4 (patch) | |
tree | 734017c8e51aa8061b8a3cceee685f21cba589d3 | |
parent | dbbcf8b75b80340642fbadd7692161bff65161db (diff) |
gnu: rust-chacha20poly1305-0.9: Adjust package dependencies.
* gnu/packages/crates-io.scm (rust-chacha20poly1305-0.9)[source]: Add
snippet to adjust crate dependencies.
[arguments]: Remove custom phases.
-rw-r--r-- | gnu/packages/crates-io.scm | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 17960099b2..9d01421836 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -10286,23 +10286,15 @@ XChaCha20, XChaCha12 and XChaCha8 stream ciphers, and also optional (uri (crate-uri "chacha20poly1305" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 "0alawaaakczsll1b98qf4m6r6kfaw28506ljvsysjyjz3mnyv11v")))) + (base32 "0alawaaakczsll1b98qf4m6r6kfaw28506ljvsysjyjz3mnyv11v")) + (modules '((guix build utils))) + (snippet + '(begin + (substitute* "Cargo.toml" + (("version = \">=1, <1.5\"") "version = \"^1\"")))))) (build-system cargo-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (add-after 'configure 'relax-requirements - (lambda _ - (substitute* - "guix-vendor/rust-chacha20-0.8.1.tar.gz/Cargo.toml" - (("version = \">=1, <1.5\"") "version = \"^1\"")) - (substitute* - "guix-vendor/rust-chacha20poly1305-0.9.0.tar.gz/Cargo.toml" - (("version = \">=1, <1.5\"") "version = \"^1\"")) - (substitute* - "Cargo.toml" - (("version = \">=1, <1.5\"") "version = \"^1\""))))) - #:cargo-inputs + `(#:cargo-inputs (("rust-aead" ,rust-aead-0.4) ("rust-chacha20" ,rust-chacha20-0.8) ("rust-cipher" ,rust-cipher-0.3) |