Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

marginalia-search: init at 24.01.2-unstable-2024-08-09 #349

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

OPNA2608
Copy link
Contributor

@OPNA2608 OPNA2608 commented Sep 4, 2024

Hacky.

  • We need to download some externally-hosted files
    • Many just point to an unversioned URL
    • The files at downloads.marginalia.nu are basically impossible for me to download via Nix (very slow connection & prone to abort) so the downloads had to be brute-forced with aria2 and hashed separately (maybe move them to module setup? But install.sh will try to verify that they're downloaded at install-time)
      • Symlinking them so they don't need to be redownloaded
  • we need to patch afew things about the downloaded Java dependencies, and the mitmCache setup doesn't have a documented way for doing this nicely
  • Must comment out configurePhase before building & running marginalia-search.mitmCache.updateScript, otherwise setup.sh gets invoked, which obviously fails if we don't have the cache updated to the latest dependencies
  • install.sh is intended for interactive usage and wants to do install-time setup for run-time details
  • Module will need to:
    • copy $out/share/marginalia to a directory the services can modify (/var/lib/...)
    • Fill out some of the template files based on the module settings, and other module settings (services.zookeeper)
    • set WMSA_HOME envvar when running $out/bin/marginalia so the code knows where it can find the modifiable $out/share/marginalia data

I don't expect this to build anymore, since some of the sources update daily which invalidates the hashes, but this is what I had so far.

Hacky.

- We need to download some externally-hosted files
  - Many just point to an unversioned URL
  - The files at downloads.marginalia.nu are basically impossible for me to download via Nix (very slow connection & prone to abort) so the downloads had to be brute-forced with aria2 and hashed separately
    (maybe move them to module setup? But install.sh will try to verify that they're downloaded at install-time)
    - Symlinking them so they don't need to be redownloaded
- we need to patch afew things about the downloaded Java dependencies, and the mitmCache setup doesn't have a documented way for doing this nicely
- Must comment out configurePhase before building & running marginalia-search.mitmCache.updateScript, otherwise setup.sh gets invoked, which obviously fails if we
  don't have the cache updated to the latest dependencies
- install.sh is intended for interactive usage and wants to do install-time setup for run-time details
- Module will need to:
  - copy $out/share/marginalia to a directory the services can modify (/var/lib/...)
  - Fill out some of the template files based on the module settings, and other module settings (services.zookeeper)
  - set WMSA_HOME envvar when running $out/bin/marginalia so the code knows where it can find the modifiable $out/share/marginalia data
@fricklerhandwerk fricklerhandwerk linked an issue Sep 4, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Marginalia Search
1 participant