add support for cargoDeps

This commit is contained in:
figsoda 2022-11-14 20:58:20 -05:00
parent 77de91a52d
commit e8629b612e
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ designed to work with nixpkgs but also other package sets.
- gitlab.com or other instances that uses fetchFromGitLab
- pypi
- rubygems.org
- update buildRustPackage's cargoHash/cargoSha256
- update buildRustPackage's cargoHash/cargoSha256 and cargoSetupHook's cargoDeps
- update buildGoModule's vendorHash/vendorSha256
- update buildNpmPackage's npmDepsHash
- build and run the resulting package (see `--build`,

View File

@ -71,7 +71,7 @@ def eval_expression(import_path: str, attr: str) -> str:
hash = pkg.src.outputHash or null;
vendor_hash = pkg.vendorHash or null;
vendor_sha256 = pkg.vendorSha256 or null;
cargo_deps = pkg.cargoHash or pkg.cargoSha256 or null;
cargo_deps = (pkg.cargoDeps or null).outputHash or null;
npm_deps = pkg.npmDepsHash or null;
tests = builtins.attrNames (pkg.passthru.tests or {{}});
changelog = pkg.meta.changelog or null;