8000 GitHub - hatimthayyil/guix-rustup: Rust binary toolchain channel for Guix
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

hatimthayyil/guix-rustup

< 8000 script type="application/json" data-target="react-partial.embeddedData">{"props":{"initialPayload":{"allShortcutsEnabled":false,"path":"/","repo":{"id":891153291,"defaultBranch":"master","name":"guix-rustup","ownerLogin":"hatimthayyil","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2024-11-19T20:26:54.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/1018798?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"master","listCacheKey":"v0:1732048020.503134","canEdit":false,"refType":"branch","currentOid":"d42f1a9a9c8ec9cc5f75185fa4b7051afc99b31a"},"tree":{"items":[{"name":".github/workflows","path":".github/workflows","contentType":"directory","hasSimplifiedPath":true},{"name":"etc","path":"etc","contentType":"directory"},{"name":"guix","path":"guix","contentType":"directory"},{"name":"scripts","path":"scripts","contentType":"directory"},{"name":".dir-locals.el","path":".dir-locals.el","contentType":"file"},{"name":".editorconfig","path":".editorconfig","contentType":"file"},{"name":".envrc","path":".envrc","contentType":"file"},{"name":".gitattributes","path":".gitattributes","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".guix-authorizations","path":".guix-authorizations","contentType":"file"},{"name":".guix-channel","path":".guix-channel","contentType":"file"},{"name":"BUG","path":"BUG","contentType":"file"},{"name":"README.org","path":"README.org","contentType":"file"},{"name":"TODO.org","path":"TODO.org","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":null,"totalCount":14,"showBranchInfobar":true},"fileTree":null,"fileTreeProcessingTime":null,"foldersToFetch":[],"treeExpanded":false,"symbolsExpanded":false,"isOverview":true,"overview":{"banners":{"shouldRecommendReadme":false,"isPersonalRepo":false,"showUseActionBanner":false,"actionSlug":null,"actionId":null,"showProtectBranchBanner":false,"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_repo","releasePath":"/hatimthayyil/guix-rustup/releases/new?marketplace=true","showPublishActionBanner":false},"interactionLimitBanner":null,"showInvitationBanner":false,"inviterName":null,"actionsMigrationBannerInfo":{"releaseTags":[],"showImmutableActionsMigrationBanner":false,"initialMigrationStatus":null}},"codeButton":{"contactPath":"/contact","isEnterprise":false,"local":{"protocolInfo":{"httpAvailable":true,"sshAvailable":null,"httpUrl":"https://github.com/hatimthayyil/guix-rustup.git","showCloneWarning":null,"sshUrl":null,"sshCertificatesRequired":null,"sshCertificatesAvailable":null,"ghCliUrl":"gh repo clone hatimthayyil/guix-rustup","defaultProtocol":"http","newSshKeyUrl":"/settings/ssh/new","setProtocolPath":"/users/set_protocol"},"platformInfo":{"cloneUrl":"https://desktop.github.com","showVisualStudioCloneButton":false,"visualStudioCloneUrl":"https://windows.github.com","showXcodeCloneButton":false,"xcodeCloneUrl":"xcode://clone?repo=https%3A%2F%2Fgithub.com%2Fhatimthayyil%2Fguix-rustup","zipballUrl":"/hatimthayyil/guix-rustup/archive/refs/heads/master.zip"}},"newCodespacePath":"/codespaces/new?hide_repo_select=true\u0026repo=891153291"},"popovers":{"rename":null,"renamedParentRepo":null},"commitCount":"30","overviewFiles":[{"displayName":"README.org","repoName":"guix-rustup","refName":"master","path":"README.org","preferredFileType":"readme","tabName":"README","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eGuix Rustup\u003c/h1\u003e\u003ca id=\"user-content-guix-rustup\" class=\"anchor\" aria-label=\"Permalink: Guix Rustup\" href=\"#guix-rustup\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n \u003cli\u003e\u003ca href=\"https://forge.rust-lang.org/infra/channel-layout.html\" rel=\"nofollow\"\u003ehttps://forge.rust-lang.org/infra/channel-layout.html\u003c/a\u003e\u003c/li\u003e\n \u003cli\u003e\u003ca href=\"https://forge.rust-lang.org/infra/other-installation-methods.html\" rel=\"nofollow\"\u003ehttps://forge.rust-lang.org/infra/other-installation-methods.html\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eOverview\u003c/h1\u003e\u003ca id=\"user-content-overview\" class=\"anchor\" aria-label=\"Permalink: Overview\" href=\"#overview\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eGuix Rustup\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eChannel introduction\u003c/h2\u003e\u003ca id=\"user-content-channel-introduction\" class=\"anchor\" aria-label=\"Permalink: Channel introduction\" href=\"#channel-introduction\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eIn case you want to use this channel, add the following code to\n your ~~/.config/guix/channels.scm~, and call \u003ccode\u003eguix pull\u003c/code\u003e.\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-scheme notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"(cons*\n (channel\n (name 'rustup)\n (url \u0026quot;https://github.com/declantsien/guix-rustup\u0026quot;)\n (introduction\n (make-channel-introduction\n \u0026quot;325d3e2859d482c16da21eb07f2c6ff9c6c72a80\u0026quot;\n (openpgp-fingerprint\n \u0026quot;F695 F39E C625 E081 33B5 759F 0FC6 8703 75EF E2F5\u0026quot;))))\n %default-channels)\"\u003e\u003cpre\u003e(cons*\n (channel\n (name \u003cspan class=\"pl-c1\"\u003e'rustup\u003c/span\u003e)\n (url \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ehttps://github.com/declantsien/guix-rustup\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e)\n (introduction\n (make-channel-introduction\n \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e325d3e2859d482c16da21eb07f2c6ff9c6c72a80\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\n (openpgp-fingerprint\n \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003eF695 F39E C625 E081 33B5 759F 0FC6 8703 75EF E2F5\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e))))\n %default-channels)\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eUsage\u003c/h2\u003e\u003ca id=\"user-content-usage\" class=\"anchor\" aria-label=\"Permalink: Usage\" href=\"#usage\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eFor stable Rusts\u003c/h3\u003e\u003ca id=\"user-content-for-stable-rusts\" class=\"anchor\" aria-label=\"Permalink: For stable Rusts\" href=\"#for-stable-rusts\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"guix search rust-toolchain\"\u003e\u003cpre\u003eguix search rust-toolchain\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eFor latest nightly/beta\u003c/h3\u003e\u003ca id=\"user-content-for-latest-nightlybeta\" class=\"anchor\" aria-label=\"Permalink: For latest nightly/beta\" href=\"#for-latest-nightlybeta\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cpre\u003eguix build -e '((@@ (rustup build toolchain) rustup) \"stable\")'\nguix build -e '((@@ (rustup build toolchain) rustup) \"beta\")'\nguix build -e '((@@ (rustup build toolchain) rustup) \"nightly\")'\n\u003c/pre\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eWith \u003ccode\u003eguix shell\u003c/code\u003e \u003ccode\u003emanifest.scm\u003c/code\u003e\u003c/h3\u003e\u003ca id=\"user-content-with-guix-shell-manifestscm\" class=\"anchor\" aria-label=\"Permalink: With guix shellmanifest.scm\" href=\"#with-guix-shell-manifestscm\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-scheme notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"(use-modules (rustup build toolchain))\n\n;; (packages-\u0026gt;manifest (list (rustup \u0026quot;nightly-2024-05-18\u0026quot;)))\n\n(packages-\u0026gt;manifest (list (rustup)))\"\u003e\u003cpre\u003e(use-modules (rustup build toolchain))\n\n\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e;\u003c/span\u003e; (packages-\u0026gt;manifest (list (rustup \"nightly-2024-05-18\")))\u003c/span\u003e\n\n(packages-\u0026gt;manifest (\u003cspan class=\"pl-c1\"\u003elist\u003c/span\u003e (rustup)))\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRustup toolchain file\u003c/h3\u003e\u003ca id=\"user-content-rustup-toolchain-file\" class=\"anchor\" aria-label=\"Permalink: Rustup toolchain file\" href=\"#rustup-toolchain-file\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ccode\u003erustup-toolchain\u003c/code\u003e\n \u003ccode\u003erustup-toolchain.toml\u003c/code\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eProcedure \u003ccode\u003erustup\u003c/code\u003e will search for these two file in parent folders like\n \u003ccode\u003eguix shell\u003c/code\u003e search for \u003ccode\u003emainfest.scm\u003c/code\u003e file. You can manully specify the\n location of the toolchain file with \u003ccode\u003e(rustup \"path/to/rust-toolchain\")\u003c/code\u003e\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003e\u003ccode\u003erustup\u003c/code\u003e arguments\u003c/h3\u003e\u003ca id=\"user-content-rustup-arguments\" class=\"anchor\" aria-label=\"Permalink: rustup arguments\" href=\"#rustup-arguments\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-scheme notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"(define* (rustup #:optional (channel-or-toolchain-file #f)\n\t\t #:key\n\t\t (components (list ))\n\t\t (targets (list ))\n\t\t (profile 'default))\n ...)\"\u003e\u003cpre\u003e(define* (rustup #:optional (channel-or-toolchain-file \u003cspan class=\"pl-c1\"\u003e#f\u003c/span\u003e)\n\t\t #:key\n\t\t (components (\u003cspan class=\"pl-c1\"\u003elist\u003c/span\u003e ))\n\t\t (targets (\u003cspan class=\"pl-c1\"\u003elist\u003c/span\u003e ))\n\t\t (profile \u003cspan class=\"pl-c1\"\u003e'default\u003c/span\u003e))\n ...)\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003e\u003ccode\u003ecargo-build-system\u003c/code\u003e\u003c/h3\u003e\u003ca id=\"user-content-cargo-build-system\" class=\"anchor\" aria-label=\"Permalink: cargo-build-system\" href=\"#cargo-build-system\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eProcedure \u003ccode\u003emake-cargo-build-system\u003c/code\u003e takes the same arguments(toolchain spec)\n as \u003ccode\u003erustup\u003c/code\u003e. Which will replace the default rustc/cargo with \u003ccode\u003erust-toolchain\u003c/code\u003e\n requested by \u003ccode\u003etoolchain spec\u003c/code\u003e\u003c/p\u003e\n\u003cpre\u003e(package\n (name \"rust-*\")\n (build-system (make-cargo-build-system \"nightly-2024-01-25\"))\n ...)\n\u003c/pre\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eUsing rustup dist server mirror\u003c/h2\u003e\u003ca id=\"user-content-using-rustup-dist-server-mirror\" class=\"anchor\" aria-label=\"Permalink: Using rustup dist server mirror\" href=\"#using-rustup-dist-server-mirror\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"export RUSTUP_DIST_SERVER=\u0026quot;https://mirrors.ustc.edu.cn/rust-static\u0026quot;\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eexport\u003c/span\u003e RUSTUP_DIST_SERVER=\u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003ehttps://mirrors.ustc.edu.cn/rust-static\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003c/article\u003e","loaded":true,"timedOut":false,"errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Guix Rustup","anchor":"guix-rustup","htmlText":"Guix Rustup"},{"level":1,"text":"Overview","anchor":"overview","htmlText":"Overview"},{"level":2,"text":"Channel introduction","anchor":"channel-introduction","htmlText":"Channel introduction"},{"level":2,"text":"Usage","anchor":"usage","htmlText":"Usage"},{"level":3,"text":"For stable Rusts","anchor":"for-stable-rusts","htmlText":"For stable Rusts"},{"level":3,"text":"For latest nightly/beta","anchor":"for-latest-nightlybeta","htmlText":"For latest nightly/beta"},{"level":3,"text":"With guix shellmanifest.scm","anchor":"with-guix-shell-manifestscm","htmlText":"With guix shellmanifest.scm"},{"level":3,"text":"Rustup toolchain file","anchor":"rustup-toolchain-file","htmlText":"Rustup toolchain file"},{"level":3,"text":"rustup arguments","anchor":"rustup-arguments","htmlText":"rustup arguments"},{"level":3,"text":"cargo-build-system","anchor":"cargo-build-system","htmlText":"cargo-build-system"},{"level":2,"text":"Using rustup dist server mirror","anchor":"using-rustup-dist-server-mirror","htmlText":"Using rustup dist server mirror"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fhatimthayyil%2Fguix-rustup"}}],"overviewFilesProcessingTime":0}},"appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-4dde5cbad90b.js","githubDevUrl":null,"enabled_features":{"copilot_workspace":null,"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}}
 
 

Repository files navigation

Guix Rustup

Overview

Guix Rustup

Channel introduction

In case you want to use this channel, add the following code to your ~~/.config/guix/channels.scm~, and call guix pull.

(cons*
 (channel
  (name 'rustup)
  (url "https://github.com/declantsien/guix-rustup")
  (introduction
   (make-channel-introduction
    "325d3e2859d482c16da21eb07f2c6ff9c6c72a80"
    (openpgp-fingerprint
     "F695 F39E C625 E081 33B5  759F 0FC6 8703 75EF E2F5"))))
 %default-channels)

Usage

For stable Rusts

guix search rust-toolchain

For latest nightly/beta

guix build -e '((@@ (rustup build toolchain) rustup) "stable")'
guix build -e '((@@ (rustup build toolchain) rustup) "beta")'
guix build -e '((@@ (rustup build toolchain) rustup) "nightly")'

With guix shell manifest.scm

(use-modules (rustup build toolchain))

;; (packages->manifest (list (rustup "nightly-2024-05-18")))

(packages->manifest (list (rustup)))

Rustup toolchain file

rustup-toolchain rustup-toolchain.toml

Procedure rustup will search for these two file in parent folders like guix shell search for mainfest.scm file. You can manully specify the location of the toolchain file with (rustup "path/to/rust-toolchain")

rustup arguments

(define* (rustup #:optional (channel-or-toolchain-file #f)
		   #:key
		   (components (list ))
		   (targets (list ))
		   (profile 'default))
  ...)

cargo-build-system

Procedure make-cargo-build-system takes the same arguments(toolchain spec) as rustup. Which will replace the default rustc/cargo with rust-toolchain requested by toolchain spec

(package
  (name "rust-*")
  (build-system (make-cargo-build-system "nightly-2024-01-25"))
  ...)

Using rustup dist server mirror

export RUSTUP_DIST_SERVER="https://mirrors.ustc.edu.cn/rust-static"

About

Rust binary toolchain channel for Guix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scheme 89.0%
  • Emacs Lisp 10.8%
  • Shell 0.2%
0