summary refs log tree commit diff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2021-09-12 22:24:59 +0300
committerEfraim Flashner <efraim@flashner.co.il>2021-09-12 22:59:47 +0300
commit979b41a894bc6128ff0749ff133e389fc574f048 (patch)
tree782c20a4caeb46b4d67facb4888208afc13a95d6
parentb359ebec23be30c1036982f95039f0af513bda97 (diff)
downloadguix-979b41a894bc6128ff0749ff133e389fc574f048.tar.gz
gnu: rust-winapi-x86-64-pc-windows-gnu@0.4: Remove bundled libraries.
* gnu/packages/crates-io.scm (rust-winapi-x86-64-pc-windows-gnu)[source]:
Add snippet to delete bundled libraries.
-rw-r--r--gnu/packages/crates-io.scm8
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a6fafc3673..b155c7e77a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -56339,10 +56339,14 @@ winapi.")
       (origin
         (method url-fetch)
         (uri (crate-uri "winapi-x86_64-pc-windows-gnu" version))
-        (file-name (string-append name "-" version ".crate"))
+        (file-name (string-append name "-" version ".tar.gz"))
         (sha256
          (base32
-          "0gqq64czqb64kskjryj8isp62m2sgvx25yyj3kpc2myh85w24bki"))))
+          "0gqq64czqb64kskjryj8isp62m2sgvx25yyj3kpc2myh85w24bki"))
+        (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 x86_64-pc-windows-gnu target")