[Nix-dev] nix-hash/NAR specification?
Kamil Chmielewski
kamil.chm at gmail.com
Mon Oct 26 18:57:32 CET 2015
Hi,
I want to write simple tool to convert golang environments into Nix
derivations. Something that I can use same way as godep but producing Nix
derivation, similar to those created with go2nix.
I implemented small PoC that reads all packages from $GOPATH/src to
discover theirs repos and current revisions.
One final thing I need is package hash. I don't want to use nix-prefetch
because I already have all sources there. I can't run nix-hash on sources
with .git directories in it.
I thought I can write nix-hash in Go to keep my code self-contained and
concise.
I found https://gist.github.com/jbeda/5c79d2b1434f0018d693 and saw Eelco
PhD thesis but I don't know if it's still valid?
So there's my question :) Is there any official nix-hash/NAR specification
that I can use?
Is nix-hash just a checksum of path archived with NAR?
Cheers,
Kamil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20151026/ab6cd393/attachment.html
More information about the nix-dev
mailing list