nixpkgs/pkgs/build-support/rust
Daniël de Kok 2f46d77e28 rustPlatform.importCargoLock: init
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.
2021-05-28 08:01:25 +02:00
..
build-rust-crate build-rust-crate: disable incremental builds 2021-04-08 10:45:56 +02:00
hooks cargo/hooks: allow hooks to be disabled 2021-03-08 19:17:03 +01:00
patch-registry-deps buildRustPackage: don't hardcode /nix/store, use $NIX_STORE 2016-01-12 13:45:11 -05:00
sysroot add sysroot lockfile update script then run it 2020-10-17 01:34:51 -07:00
cargo-vendor-normalise.py fetchcargo: add type checking to cargo-vendor-normalise.py 2018-09-11 23:44:14 +02:00
carnix.nix Carnix: 0.9 -> 0.10 2019-03-26 18:54:28 +00:00
crates-io.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
default-crate-overrides.nix treewide: stdenv.lib -> lib 2021-01-24 01:49:49 +01:00
default.nix buildRustPackage: use checkType argument 2021-02-26 11:57:27 +01:00
fetchcargo-default-config.toml fectchcargo: don't break old sha256 2018-09-11 23:44:14 +02:00
fetchCargoTarball.nix fetchCargoTarball: set default sourceRoot to the empty string 2021-02-11 20:00:13 +01:00
fetchcrate.nix fetchCrate: accept pname besides crateName 2020-08-28 08:34:22 +02:00
import-cargo-lock.nix rustPlatform.importCargoLock: init 2021-05-28 08:01:25 +02:00