mempool: minor refactorings

- Use `sourceRoot`
- Allow `generate.sh` to directly trigger the build of `nodeModules`.
  Needed by mempool 3.2.1, where `mempool-backend` has multiple fixed output
  derivation dependencies, which can only be updated if they can be
  built directly.
This commit is contained in:
Erik Arvstedt 2025-06-02 10:46:52 +02:00
parent c48b99782d
commit d61099a535
No known key found for this signature in database
GPG key ID: 33312B944DD97846
2 changed files with 8 additions and 4 deletions

View file

@ -50,7 +50,7 @@ updateNodeModulesHash() {
component=$1
echo
echo "Fetching node modules for mempool-$component"
../../helper/update-fixed-output-derivation.sh ./default.nix mempool-"$component" "cd $component"
../../helper/update-fixed-output-derivation.sh ./default.nix mempool-"$component".nodeModules "sourceRoot.*$component"
}
updateFrontendAssets() {