-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from numtide/more-config
More config
- Loading branch information
Showing
5 changed files
with
92 additions
and
86 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"/> | ||
<title>nar-serve</title> | ||
<link rel=stylesheet | ||
href="https://cdnjs.cloudflare.com/ajax/libs/Primer/11.0.0/build.css"> | ||
</head> | ||
<body> | ||
<div class="container-lg px-3 my-5 markdown-body"> | ||
<h1>nar-serve</h1> | ||
|
||
<p>All the files in <a href="https://cache.nixos.org">cache.nixos.org</a> are packed in NAR files which makes them not directly accessible. This service allows to dowload, decompress, unpack and serve any file in the cache on the fly.</p> | ||
|
||
<h2>Use cases</h2> | ||
|
||
<ul> | ||
<li>Avoid publishing build artifacts to both the binary cache and | ||
another service.</li> | ||
<li>Allows to share build results easily.</li> | ||
<li>Inspect the content of a NAR file.</li> | ||
</ul> | ||
|
||
<h2>Usage</h2> | ||
<ol> | ||
<li>Pick a full store path in your filesystem.</li> | ||
<li>Paste it in the form below.</li> | ||
<li>Click submit. TADA!</li> | ||
</ol> | ||
|
||
<dl class="form-group"> | ||
<dt><label for=reformat-input>Store path</label></dt> | ||
<dd> | ||
<input type=text id=store-path class="form-control input-block"> | ||
</dd> | ||
</dl> | ||
|
||
<button class="btn btn-primary" id=store-path-submit>Load</button> | ||
|
||
<h2>Examples</h2> | ||
<ul> | ||
<li><a href="/nix/store/zk5crljigizl5snkfyaijja89bb6228x-rake-12.3.1/bin/rake">readlink -f $(which rake)</a></li> | ||
<li><a href="/nix/store/barxv95b8arrlh97s6axj8k7ljn7aky1-go-1.12/share/go/doc/effective_go.html">/nix/store/barxv95b8arrlh97s6axj8k7ljn7aky1-go-1.12/share/go/doc/effective_go.html</a></li> | ||
</ul> | ||
|
||
|
||
<hr> | ||
<p> | ||
Like this project? Star it on <a href="https://github.com/numtide/nar-serve">GitHub</a>. | ||
|
||
<script> | ||
const storePathEl = document.getElementById("store-path"); | ||
const storePathSubmitEl = document.getElementById("store-path-submit"); | ||
|
||
storePathSubmitEl.onclick = function() { | ||
document.location.pathname = storePathEl.value; | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
User-agent: * | ||
Disallow: /nix/store |