mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-03-14 16:26:05 +01:00
updates
This commit is contained in:
parent
6316591cd7
commit
056e5653e0
3 changed files with 48 additions and 55 deletions
|
|
@ -1,32 +1,11 @@
|
|||
diff --git a/src/toolchains.rs b/src/toolchains.rs
|
||||
index 16e68a0..5ce1c50 100644
|
||||
index a4be8cd..95e9d16 100644
|
||||
--- a/src/toolchains.rs
|
||||
+++ b/src/toolchains.rs
|
||||
@@ -34,6 +34,8 @@ pub(crate) enum InstallError {
|
||||
TempDir(#[source] io::Error),
|
||||
#[error("Could not move tempdir into destination: {0}")]
|
||||
Move(#[source] io::Error),
|
||||
+ #[error("Could not patchelf")]
|
||||
+ Patchelf(#[source] io::Error),
|
||||
#[error("Could not run subcommand {cmd}: {err}")]
|
||||
Subcommand {
|
||||
cmd: String,
|
||||
@@ -208,7 +210,9 @@ impl Toolchain {
|
||||
})?;
|
||||
}
|
||||
@@ -19,6 +19,49 @@ use xz2::read::XzDecoder;
|
||||
|
||||
- fs::rename(tmpdir.into_path(), dest).map_err(InstallError::Move)
|
||||
+ fs::rename(tmpdir.into_path(), &dest).map_err(InstallError::Move)?;
|
||||
+ nix_patchelf(dest).map_err(InstallError::Patchelf)?;
|
||||
+ Ok(())
|
||||
}
|
||||
use crate::{Config, GitDate};
|
||||
|
||||
pub(crate) fn remove(&self, dl_params: &DownloadParams) -> io::Result<()> {
|
||||
@@ -542,3 +546,46 @@ fn download_tarball(
|
||||
res => res,
|
||||
}
|
||||
}
|
||||
+
|
||||
+fn nix_patchelf(mut toolchain_path: PathBuf) -> Result<(), io::Error> {
|
||||
+ toolchain_path.push("bin");
|
||||
+
|
||||
|
|
@ -69,3 +48,17 @@ index 16e68a0..5ce1c50 100644
|
|||
+
|
||||
+ Ok(())
|
||||
+}
|
||||
+
|
||||
pub const YYYY_MM_DD: &str = "%Y-%m-%d";
|
||||
|
||||
pub(crate) const NIGHTLY_SERVER: &str = "https://static.rust-lang.org/dist";
|
||||
@@ -208,7 +251,8 @@ impl Toolchain {
|
||||
})?;
|
||||
}
|
||||
|
||||
- fs::rename(tmpdir.keep(), dest).map_err(InstallError::Move)
|
||||
+ fs::rename(tmpdir.into_path(), &dest).map_err(InstallError::Move)?;
|
||||
+ nix_patchelf(dest).map_err(InstallError::Move)
|
||||
}
|
||||
|
||||
pub(crate) fn remove(&self, dl_params: &DownloadParams) -> io::Result<()> {
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
pkgs: pkgs.rustPlatform.buildRustPackage {
|
||||
pname = "cargo-bisect-rustc";
|
||||
version = "0.6.7";
|
||||
version = "0.6.11";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "rust-lang";
|
||||
repo = "cargo-bisect-rustc";
|
||||
rev = "e61eb10bb7b5eacb1fe3244d18ccb059393d7fac";
|
||||
hash = "sha256-rr0fU1Y5k2ScT8zpBz4VhMaUlbW/ze00ORz8dUNFIpI=";
|
||||
rev = "995147f7863377b3831f84911d21d1895437eee7";
|
||||
hash = "sha256-kQmQXMiZAh2zAXkxMoxlTfjrpXMIgXlJfwOsJPIVe94=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-4C63UsFlFAKaSXXwtO+u9yi3kvnLG8hKAnTQRKvwg2U=";
|
||||
cargoHash = "sha256-WSO5LvdJkAorSwsICz9NAWKNM7x4aeNvhGLhJSO6Vi8=";
|
||||
|
||||
patches =
|
||||
let
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue