numtide / nar-serve

Unpack and serve NAR file content on the fly
Apache License 2.0
32 stars 8 forks source link

Support binary caches with a different storeDir #3

Open zimbatm opened 5 years ago

zimbatm commented 5 years ago

The API currently only works if the storeDir is set to the default /nix/store. It would be nice if other stores were supported.

I think this would require to change the API shape a bit.

Instead of /nix/store/<hash>..., load the storeDir and add a prefix: /unpack/<storeDir>/<hash>...