gnu: fd: Adjust for newer rust-clap-4.

* gnu/packages/rust-apps.scm (fd)[arguments]: Add a phase to remove a
feature-flag which was removed from the dependant project.
This commit is contained in:
Efraim Flashner 2023-05-22 21:19:28 +03:00
parent c62b63a210
commit 0432b5907b
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -520,6 +520,11 @@ (define-public fd
(setenv "CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS" "1")
(setenv "JEMALLOC_OVERRIDE"
(string-append jemalloc "/lib/libjemalloc.so")))))
(add-after 'unpack 'adjust-feature-flags
(lambda _
;; unstable-grouped was stablized in rust-clap 4.2.0
(substitute* "Cargo.toml"
((".*unstable-grouped.*") ""))))
(add-after 'install 'install-extra
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))