1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-15 11:30:44 +02:00

gnu: rust-openssl-sys-extras-0.7: Use snippet.

* gnu/packages/crates-io.scm (rust-openssl-sys-extras-0.7): Add snippet.
[phases]: Remove fix-cargo-toml phase.

Change-Id: I27e5999daa849c2e9300ab5d7174c093a23f28ea
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Herman Rimm 2024-12-25 20:49:50 +01:00 committed by Efraim Flashner
parent fda24a4ca6
commit 806b4d343f
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -53156,25 +53156,19 @@ system for OpenSSL.")
(origin
(method url-fetch)
(uri (crate-uri "openssl-sys-extras" version))
(file-name
(string-append name "-" version ".tar.gz"))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"1ymrmfnknyjji74fflbnnq9r5ihx25h0vgs5y203vl6klzdy3i8i"))))
(base32 "1ymrmfnknyjji74fflbnnq9r5ihx25h0vgs5y203vl6klzdy3i8i"))
(modules '((guix build utils)))
(snippet #~(substitute* "Cargo.toml"
((", path =.*}") "}")))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t ; Depends on openssl-1.0.
#:cargo-inputs
(("rust-libc" ,rust-libc-0.2)
("rust-openssl-sys" ,rust-openssl-sys-0.7)
("rust-gcc" ,rust-gcc-0.3))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-cargo-toml
(lambda _
(substitute* "Cargo.toml"
((", path =.*}") "}"))
#t)))))
("rust-gcc" ,rust-gcc-0.3))))
(home-page "https://github.com/sfackler/rust-openssl")
(synopsis
"Extra FFI bindings to OpenSSL that require a C shim")