[Nix-dev] nix-hash/NAR specification?

Domen Kožar domen at dev.si
Mon Oct 26 19:06:56 CET 2015


You can use:

$ nix-prefetch-url file://path/to/folder/

On Mon, Oct 26, 2015 at 6:57 PM, Kamil Chmielewski <kamil.chm at gmail.com>
wrote:

> 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
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20151026/674b3e79/attachment.html 


More information about the nix-dev mailing list