From 163592c8431e25a807396576b0956f0c97640c41 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 4 Oct 2023 16:06:42 +0300 Subject: build: cargo-build-system: Strip enough prefix in package. * guix/build/cargo-build-system.scm (package): When using the source as the packaged crate also strip the 'rust-' prefix. --- guix/build/cargo-build-system.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'guix/build/cargo-build-system.scm') diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm index 8bf6ba510b..e54882be34 100644 --- a/guix/build/cargo-build-system.scm +++ b/guix/build/cargo-build-system.scm @@ -231,10 +231,10 @@ directory = '" port) (for-each (lambda (file) (make-file-writable file) - ;; Strip the hash and replace '.tar.gz' with '.crate'. + ;; Strip the hash and rust prefix and replace '.tar.gz' with '.crate'. (rename-file file (string-append (string-drop-right - (string-drop file 35) + (string-drop file 40) (string-length ".tar.gz")) ".crate"))) (find-files "." "\\.tar\\.gz$")))) -- cgit v1.2.3