diff options
| author | John Kehayias <john.kehayias@protonmail.com> | 2022-11-15 14:36:35 -0500 |
|---|---|---|
| committer | John Kehayias <john.kehayias@protonmail.com> | 2022-11-15 14:36:35 -0500 |
| commit | 538cd44d5497048abf2ca5cc115e90f3a7d63270 (patch) | |
| tree | 94fa40497f57b53f2536543066834283d6bcbb5d | |
| parent | 1aecd24155019cc524bca1c868729102c8b23f24 (diff) | |
nongnu: Remove unneeded rust packages.
Upstream Guix now has rust-1.61 (and more), so remove unneeded bootstrapping.
* nongnu/packages/mozilla.scm (rust-uri, rust-bootstrapped-package,
rust-firefox-1.61): Remove variables.
(rust-firefox): Set to be rust-1.61.
| -rw-r--r-- | nongnu/packages/mozilla.scm | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/nongnu/packages/mozilla.scm b/nongnu/packages/mozilla.scm index a9a4a41..b7b1470 100644 --- a/nongnu/packages/mozilla.scm +++ b/nongnu/packages/mozilla.scm | |||
| @@ -85,52 +85,12 @@ | |||
| 85 | #:use-module (gnu packages xdisorg) | 85 | #:use-module (gnu packages xdisorg) |
| 86 | #:use-module (gnu packages xorg)) | 86 | #:use-module (gnu packages xorg)) |
| 87 | 87 | ||
| 88 | ;; Copied from guix/gnu/packages/rust.scm | ||
| 89 | (define* (rust-uri version #:key (dist "static")) | ||
| 90 | (string-append "https://" dist ".rust-lang.org/dist/" | ||
| 91 | "rustc-" version "-src.tar.gz")) | ||
| 92 | |||
| 93 | (define* (rust-bootstrapped-package base-rust version checksum) | ||
| 94 | "Bootstrap rust VERSION with source checksum CHECKSUM using BASE-RUST." | ||
| 95 | (package | ||
| 96 | (inherit base-rust) | ||
| 97 | (version version) | ||
| 98 | (source | ||
| 99 | (origin | ||
| 100 | (inherit (package-source base-rust)) | ||
| 101 | (uri (rust-uri version)) | ||
| 102 | (sha256 (base32 checksum)))) | ||
| 103 | (native-inputs | ||
| 104 | (alist-replace "cargo-bootstrap" (list base-rust "cargo") | ||
| 105 | (alist-replace "rustc-bootstrap" (list base-rust) | ||
| 106 | (package-native-inputs base-rust)))))) | ||
| 107 | |||
| 108 | (define rust-firefox-1.61 | ||
| 109 | (let ((base-rust (rust-bootstrapped-package | ||
| 110 | rust "1.61.0" | ||
| 111 | "1vfs05hkf9ilk19b2vahqn8l6k17pl9nc1ky9kgspaascx8l62xd"))) | ||
| 112 | (package | ||
| 113 | (inherit base-rust) | ||
| 114 | (arguments | ||
| 115 | (substitute-keyword-arguments (package-arguments base-rust) | ||
| 116 | ((#:phases phases) | ||
| 117 | `(modify-phases ,phases | ||
| 118 | (add-after 'unpack 'disable-tests-with-sigint | ||
| 119 | ;; These tests rely on killing a process with SIGINT which | ||
| 120 | ;; fails in the build container. | ||
| 121 | (lambda _ | ||
| 122 | (substitute* "library/std/src/sys/unix/process/process_common/tests.rs" | ||
| 123 | (("fn test_process_group_posix_spawn") | ||
| 124 | "#[ignore]\nfn test_process_group_posix_spawn") | ||
| 125 | (("fn test_process_group_no_posix_spawn") | ||
| 126 | "#[ignore]\nfn test_process_group_no_posix_spawn"))))))))))) | ||
| 127 | |||
| 128 | ;; Define the versions of rust needed to build firefox, trying to match | 88 | ;; Define the versions of rust needed to build firefox, trying to match |
| 129 | ;; upstream. See the file taskcluster/ci/toolchain/rust.yml at | 89 | ;; upstream. See the file taskcluster/ci/toolchain/rust.yml at |
| 130 | ;; https://searchfox.org under the particular firefox release, like | 90 | ;; https://searchfox.org under the particular firefox release, like |
| 131 | ;; mozilla-esr102. | 91 | ;; mozilla-esr102. |
| 132 | (define-public rust-firefox-esr rust) ; 1.60 is the default in Guix | 92 | (define-public rust-firefox-esr rust) ; 1.60 is the default in Guix |
| 133 | (define-public rust-firefox rust-firefox-1.61) ; 1.63 is also listed, but 1.61 is the minimum needed | 93 | (define-public rust-firefox (@@ (gnu packages rust) rust-1.61)) ; 1.63 is also listed, but 1.61 is the minimum needed |
| 134 | 94 | ||
| 135 | ;; rust-cbindgen-0.23/0.24 dependencies | 95 | ;; rust-cbindgen-0.23/0.24 dependencies |
| 136 | (define-public rust-unicode-ident-1 | 96 | (define-public rust-unicode-ident-1 |
