Skip to content

Commit

Permalink
update nix archive for rust
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed Jan 13, 2025
1 parent 1f5e11d commit 9f76700
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/providers/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const CARGO_GIT_CACHE_DIR: &str = "/root/.cargo/git";
const CARGO_REGISTRY_CACHE_DIR: &str = "/root/.cargo/registry";
const CARGO_TARGET_CACHE_DIR: &str = "target";

const NIX_ARCHIVE: &str = "ef56e777fedaa4da8c66a150081523c5de1e0171";

pub struct RustProvider {}

impl Provider for RustProvider {
Expand Down Expand Up @@ -76,6 +78,8 @@ impl RustProvider {
setup.add_nix_pkgs(&[Pkg::new("musl"), Pkg::new("musl.dev")]);
}

setup.set_nix_archive(NIX_ARCHIVE.to_string());

Ok(setup)
}

Expand Down

0 comments on commit 9f76700

Please sign in to comment.