replit / rippkgs

A CLI for indexing and searching packages in Nix expressions
MIT License
151 stars 2 forks source link

tidy #15

Closed cdmistman closed 5 months ago

cdmistman commented 6 months ago

Why

i had a laundry list of things to do before writing and sharing the blog post. this is a mega-PR for achieving this.

What changed

i suggest looking at each commit individually. i'll be avoiding force-pushes to ensure review comments on specific commits aren't lost. overall list of changes:

  1. define a common type to use between both CLIs for the database representation of packages
  2. improve error reporting
  3. remove system argument from the genRegistry nix function
  4. rippkgs-index now uses nix eval with the genRegistry function to generate the registry (so only 1 registry format is needed now)
  5. refactored both CLIs for clarity
  6. updated and added info to the README

Test plan

  1. cargo build --release --all
  2. follow the readme
  3. it works
airportyh commented 6 months ago

I am getting this error in a Repl:

  = note: /nix/store/p0p56gzz837fgmfd7lyisghcd7x2fdlc-binutils-2.40/bin/ld: cannot find -lsqlite3: No such file or directory
          clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
airportyh commented 6 months ago

Oh, nix develop...