nar-serve

command module
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

nar-serve - serve NAR file content

Push your build artifacts to one place.

All the files in https://cache.nixos.org are packed in NAR files which makes them not directly accessible. This service allows to download, decompress, unpack and serve any file in the cache on the fly.

Use cases

  • Avoid publishing build artifacts to both the binary cache and another service.
  • Allows to share build results easily.
  • Inspect the content of a NAR file.

Development

Inside the provided nix shell run:

./start-dev

This will create a small local server with live reload that emulates now.sh.

Currently, the default port is 8383. You can change it by setting the PORT environment variable.

Usage

Append any store path to the hostname to fetch and unpack it on the fly. That's it.

Eg:

Contributing

Contributions are welcome!

Before adding any new feature it might be best to first discuss them by creating a new issue in https://github.com/numtide/nar-serve/issues .

All code is licenses under the Apacke 2.0 license.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
Package libstore implements a subset of the nix libstore API
Package libstore implements a subset of the nix libstore API

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL