Merge pull request #107 from figsoda/cargoDeps

add support for cargoDeps
This commit is contained in:
Jörg Thalheim 2022-11-15 08:52:26 +01:00 committed by GitHub
commit 0c34276d74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;