Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
buildRustPackage: add cargoCopyLockfile option
When enabled, it allows to check whenever the cargoSha256 needs updating or not. This technique depends on IFS and is not allowed inside of nixpkgs but it's handy to have available. Eg: let pkg = buildRustPackage { ... }; srcContent = builtins.readFile "${pkg.src}/Cargo.lock"; depsContent = builtins.readFile "${pkgs.cargoDeps}/Cargo.lock"; in # this will fail when the cargoSha256 gets out of sync assert (srcContent == depsContent); pkg
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters