From b359ebec23be30c1036982f95039f0af513bda97 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 12 Sep 2021 22:24:08 +0300 Subject: [PATCH] gnu: rust-winapi-i686-pc-windows-gnu@0.4: Remove bundled libraries. * gnu/packages/crates-io.scm (rust-winapi-i686-pc-windows-gnu)[source]: Add snippet to delete bundled libraries. --- gnu/packages/crates-io.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 8a469785d9..a6fafc3673 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -56291,10 +56291,14 @@ command-line, uniformly on all platforms") (origin (method url-fetch) (uri (crate-uri "winapi-i686-pc-windows-gnu" version)) - (file-name (string-append name "-" version ".crate")) + (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 - "1dmpa6mvcvzz16zg6d5vrfy4bxgg541wxrcip7cnshi06v38ffxc")))) + "1dmpa6mvcvzz16zg6d5vrfy4bxgg541wxrcip7cnshi06v38ffxc")) + (modules '((guix build utils))) + (snippet + '(begin + (for-each delete-file (find-files "." "\\.a$")))))) (build-system cargo-build-system) (home-page "https://github.com/retep998/winapi-rs") (synopsis "Import libraries for the i686-pc-windows-gnu target")