guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

67/308: gnu: rust-any-all-workaround-0.1: Enable building.


From: guix-commits
Subject: 67/308: gnu: rust-any-all-workaround-0.1: Enable building.
Date: Wed, 4 Dec 2024 16:20:33 -0500 (EST)

efraim pushed a commit to branch rust-team
in repository guix.

commit bd9a694711d1f773a201d5bcf0dc462be2dd6e37
Author: Aaron Covrig <aaron.covrig.us@ieee.org>
AuthorDate: Mon Dec 2 21:59:43 2024 -0500

    gnu: rust-any-all-workaround-0.1: Enable building.
    
    * gnu/packages/crates-io.scm (rust-any-all-workaround-0.1)[arguments]:
    Don't skip the build.  Add a phase to enable building.
    
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
    Change-Id: I18bc4bd13178f1fa5515683eaa42a0f771d33dcb
---
 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 d3e2609ec2..f66aa71d2e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -2313,8 +2313,12 @@ writing colored text to a terminal.")
         (base32 "11ifmzawvvi6d4r1lk0dkdnbswf574npgkika4535k7j6l3s9zl8"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #t ; `#![feature]` may not be used on the stable release 
channel
-       #:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1))))
+     `(#:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1))
+       #:phases (modify-phases %standard-phases
+                  ;; `#![feature]` may not be used on the stable release 
channel
+                  ;; Enable using nightly/dev features
+                  (add-after 'unpack 'enable-unstable-features
+                    (lambda _ (setenv "RUSTC_BOOTSTRAP" "1"))))))
     (home-page "https://docs.rs/any_all_workaround/";)
     (synopsis "Workaround for bad LLVM codegen for boolean reductions on 
32-bit ARM")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]