2f46d77e28
This function can be used to create an output path that is a cargo vendor directory. In contrast to e.g. fetchCargoTarball all the dependent crates are fetched using fixed-output derivations. The hashes for the fixed-output derivations are gathered from the Cargo.lock file. Usage is very simple, e.g.: importCargoLock { lockFile = ./Cargo.lock; } would use the lockfile from the current directory. The implementation of this function is based on Eelco Dolstra's import-cargo: https://github.com/edolstra/import-cargo/blob/master/flake.nix Compared to upstream: - We use fetchgit in place of builtins.fetchGit. - Sync to current cargo vendoring. |
||
---|---|---|
.. | ||
rls | ||
1_45.nix | ||
1_51.nix | ||
binary.nix | ||
bootstrap.nix | ||
cargo.nix | ||
clippy.nix | ||
default.nix | ||
make-rust-platform.nix | ||
print-hashes.sh | ||
rust-lib-src.nix | ||
rust-src.nix | ||
rustc.nix | ||
rustfmt.nix | ||
setup-hook.sh |