IRC channel logs
2014-02-07.log
back to list of logs
<Steap_>Does anyone know what verbosity levels can be passed to guix commands ? <sdfsaa>civodul: I'd like to create the simplest possible binary cache (for testing purposes). Where should I look? <civodul>well you know what the narinfo looks like, right? <sdfsaa>Yes, just like the recutils file. <civodul>so you can create that "by hand" on a specific example, say <civodul>and you could create the signature field likewise <civodul>and then point the substituter at that <civodul>see tests/store.scm on how to do that, there's an env. var <sdfsaa>So I'm not sure how to create the binary cache by hand. Let's see if the example in tests/store.scm help. <civodul>"binary cache" designates all these formats notably used by Hydra <civodul>sdfsaa: if you look at the test called "substitute", it basically creates 3 files: 'nix-cache-info', 'xxx.narinfo', and 'xxx.nar' *sdfsaa is reading the code <sdfsaa>what's the purpose of nix-cache-info? <civodul>well it tells clients StoreDir and WantsMassQuery :-) <civodul>so if your store dir is /foo/store and the server says it serves /nix/store, it's no need going further <civodul>and WantsMassQuery is to ask cooperative clients to not DoS the server <civodul>i think our substituter doesn't honor it :-) <sdfsaa>OK, I've got the idea. Going to play with the code. I'll let you know if anything isn't clear. Thanks for your help. <sdfsaa>civodul: It's unusual to see you using one letter identifiers. Have you been writing Haskell lately? <civodul>i do that sometimes, but i try to refrain from doing it in "real code" <civodul>FORTRAN uses one-letter identifiers too ;-) <viric>it's an advantage that computer keyboards include different keys for l and 1. <viric>It would have been fun otherwise. <sdfsaa>civodul: You said that (paraphrased) "those three files are a binary cache." But /nix/var/nix/substitute-binary/cache doesn't look like that. There are multiple scheme-y .narinfos each of which uses a hash as its name. I assume that 'nix-push' expects that format. So how can I convert the mentioned three files into it? <sdfsaa>(I've probably misunderstood something.) <sdfsaa>civodul: I have to go. Please follow up on the list. <civodul>it's Friday, i guess we'll all looking for ways to slack :-) <Steap_>civodul: don't people do that all week , <civodul>well, Friday is traditionally a peak <Steap_>btw, I can't seem to find my printer (again), so I'm moving to your workplace :)