Merge pull request #109 from winterqt/npm-deps-hook

add support for npmDeps
This commit is contained in:
figsoda 2022-11-20 13:27:05 -05:00 committed by GitHub
commit 006d895fde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ designed to work with nixpkgs but also other package sets.
- rubygems.org
- update buildRustPackage's cargoHash/cargoSha256 and cargoSetupHook's cargoDeps
- update buildGoModule's vendorHash/vendorSha256
- update buildNpmPackage's npmDepsHash
- update buildNpmPackage's npmDepsHash and npmConfigHook's npmDeps
- build and run the resulting package (see `--build`,
`--run` or `--shell`
- commit updated files (see `--commit` flag)

View File

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