gnu: rust-pcre2-sys-0.2: Unbundle vendored source.

* gnu/packages/crates-io.scm (rust-pcre2-sys-0.2)[arguments]: Don't skip
build. Add custom phase to delete vendored sources.
[native-inputs]: Add pcre2, pkg-config.
This commit is contained in:
Efraim Flashner 2020-01-21 18:49:10 +02:00
parent 5e2ce6afad
commit f51fa60b16
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -28,6 +28,7 @@
#:use-module (guix packages)
#:use-module (gnu packages compression)
#:use-module (gnu packages jemalloc)
#:use-module (gnu packages pcre)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages ssh)
#:use-module (gnu packages tls)
@ -7548,11 +7549,23 @@ deserialization, and interpreter in Rust.")
"0nwdvc43dkb89qmm5q8gw1zyll0wsfqw7kczpn23mljra3874v47"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
`(#:cargo-inputs
(("rust-libc" ,rust-libc-0.2)
("rust-pkg-config" ,rust-pkg-config-0.3)
("rust-cc" ,rust-cc-1.0))))
("rust-cc" ,rust-cc-1.0))
#:phases
(modify-phases %standard-phases
(add-after 'configure 'unbundle-sources
(lambda _
(delete-file-recursively "pcre2")
(delete-file-recursively
(string-append "guix-vendor/rust-pcre2-sys-"
,(package-version rust-pcre2-sys-0.2)
".tar.gz/pcre2"))
#t)))))
(native-inputs
`(("pcre2" ,pcre2)
("pkg-config" ,pkg-config)))
(home-page
"https://github.com/BurntSushi/rust-pcre2")
(synopsis "Low level bindings to PCRE2")