summary refs log tree commit diff
path: root/pkgs/test
diff options
context:
space:
mode:
authorDaniël de Kok <me@danieldk.eu>2021-05-08 07:44:31 +0200
committerDaniël de Kok <me@danieldk.eu>2021-05-28 08:01:28 +0200
commitb3969f3ad793ee98af14cf0c649f626520943a53 (patch)
treea2d96f9e34dd6ad96d4d77b1207e8ae038532edb /pkgs/test
parent2f46d77e2806dd22f4ec4ac6ea3f9981df81dd94 (diff)
downloadnixpkgs-b3969f3ad793ee98af14cf0c649f626520943a53.tar
nixpkgs-b3969f3ad793ee98af14cf0c649f626520943a53.tar.gz
nixpkgs-b3969f3ad793ee98af14cf0c649f626520943a53.tar.bz2
nixpkgs-b3969f3ad793ee98af14cf0c649f626520943a53.tar.lz
nixpkgs-b3969f3ad793ee98af14cf0c649f626520943a53.tar.xz
nixpkgs-b3969f3ad793ee98af14cf0c649f626520943a53.tar.zst
nixpkgs-b3969f3ad793ee98af14cf0c649f626520943a53.zip
rustPlatform.buildRustPackage: support direct use of Cargo.lock
This change introduces the cargoLock argument to buildRustPackage,
which can be used in place of cargo{Sha256,Hash} or cargoVendorDir. It
uses the importCargoLock function to build the vendor
directory. Differences compared to cargo{Sha256,Hash}:

- Requires a Cargo.lock file.
- Does not require a Cargo hash.
- Retrieves all dependencies as fixed-output derivations.

This makes buildRustPackage much easier to use as part of a Rust
project, since it does not require updating cargo{Sha256,Hash} for
every change to the lock file.
Diffstat (limited to 'pkgs/test')
0 files changed, 0 insertions, 0 deletions