<roptat>Copenhagen_Bram: so just add the --substitute-urls option there
<roptat>you'll have to restart the service of course
<Copenhagen_Bram>The manual is almost as good as a wiki. It taught me how to connect to the internet without a network manager, and how to encrypt my hard drive.
<Copenhagen_Bram>I really like how you guys set it up so that it's easily accessible via tty2
<roptat>pheonix83: but the best way to get help is to ask your questions here directly ;)
<Copenhagen_Bram>I have a question. How do I edit gnu/system/install.scm to make a custom disk image with a few extra packages installed?
<roptat>mhisn't there a packages field in that file?
<Copenhagen_Bram>Hmm. And do I need some other files to use install.scm? Like the .tmpl files?
<pheonix83>roptat: thanks mate, i get most of it. just not sure about the partitioning. i tried a install and set the bios flag and so on. but after install and boot it wouldnt load grub so ill try again in the next couple days. just wanted to gather some more detailed information.
<roptat>Copenhagen_Bram: I don't think so, but I'm not sure how the file is used to generate a system
<roptat>Copenhagen_Bram: I guess you'll have to look in Makefile.am to find that info
<pheonix83>roptat: yeh not sure. think i messed something up. ill install on my laptop so i can chat here and ask what everyone else did when im unsure :)
<pheonix83>roptat: thanks for you help appreciate it mate.
<iyzsong>Copenhagen_Bram: hello, after you edited the 'packages' field of install.scm, you can run 'guix system disk-image PATH-TO/install.scm' to build the image (as mention in 6.1.7 of the guix manual).
<roptat>Copenhagen_Bram: looking in Makefile.am, you'll just have to run "guix system disk-image --file-system-type=iso9660 gnu/system/install.scm"
<iyzsong>Copenhagen_Bram: looking at the backtrace, it will loads 'bare-bones.tmpl' relative to its location. So, I think you have to make a git clone of the 'guix' repository (which contains 'bare-bones.tmpl' at right location), and then edit the 'install.scm' there.
<g_bor[m]>If I would like to use a function in a package definition in a phase, it is enough to list it origin modules? According to the documentation it only work for code in snippets, so I assume no. Is it possible to do this without including the module (i. e. restrict the scope to a single package?)
<roptat>g_bor[m]: could you give an example of what you're trying to do?
<g_bor[m]>roptat: Maybe you know more about this, we have a bug in java-picard, the build fails with duplicate class. In the gradle file one dependency excludes the module. That is why the gradle build works without problem. How could we replicate that in guix?
<roptat>g_bor[m]: I don't know much about these build systems
<roptat>I'm just trying to build java packages, and I got sidetracked into building maven and gradle :p
<roptat>so I'm not sure what the semantics of exclude is in that case
<g_bor[m]>roptat: Ok, I see. Then I will have a closer look at this. Some functionality, like exclude module, and maven input renaming came up several times. It is a good question, if ant-build-system should be extended to support these patterns, should we wait to have the appropriate build systems for maven and gradle, and focus on that first, or keep dealing with this on a case by case basis, as it is done right now...
<g_bor[m]>rekado_: I'm trying to get the ant-bootstrap reproducibility bug sorted. What I would like to do, is to get the strip-jar-timestamp phase from ant-build-system standard phases added after the build phase in ant-bootstrap. It is ok that I have to use add-after 'build 'strip-jar-timestamp ...
<rekado_>soundtoxin: no, this does not include the actual error. It only says that it aborted because an error was taken as fatal, as per some configure flag.
<g_bor[m]>But how do I get the phase from the ant standard phases. It looks like, that I can refenece the ant standar phases like @ant-build-system %standard-phases, but how to go on from there?
<soundtoxin>the only error logs I'm able to make sense of are minecraft crash logs... excuse my inexperience here
<rekado_>g_bor[m]: yes, you can do (assoc-ref ant:%standard-phases 'strip-jar-timestamp); you only need to make sure that the ant-build-system module is included in #:modules and prefixed with “ant:”.
<g_bor[m]>I also think there was some work on an npm importer...
<ngz>On another topic, I packaged python-pylibscrypt a few weeks ago. For some context, it is a wrapper that tries to use Scrypt with different ways (openssl, libscrypt ...) and fallbacks to a Python implementation if none is found.
<g_bor[m]>I believe that the main problem we are having with these is package version explosion. I was thinking about how to avoid that, but it is not so easy. How could one guarantee, that the version requirement in the software is not strict? If we would have in the builds a range of versions specified, that is known to be working, it would be much easier to optimize for the number of packages really needed...
<ngz>However, this package is not able to find any external library, would it be provided as an input, a native-input or a propagated input, would it be libsodium, or openssl-next... so it always fallback to the slow Python implementation.
<ngz>There is no absolute path for these libraries in the package source code. It uses find_library.
<ngz>So, I wonder: how can I tell it to find them?
<hulten>I would like to test/debug mcron jobs. Where do the log files go and/or how do I read mail if logs are mailed?
<hulten>On e.g. Debian I type in 'mail' as root; but even if I install the package that provides this program (don't know which that is), I'm not sure if mcron on GuixSD will send an e-mail by default.
***jonsger1 is now known as jonsger
<cbaines>hulten, from memory, mcron has some room for improvement in terms of the visibility of what it does
<cbaines>I use it for letsencrypt on a server I have with GuixSD, and the output goes to the virtual terminal
<jlicht>pkill9: user shepherd services are a bit less glamorous than full blown GuixSD-services, so it's just a call to `pulseaudio --start --daemonize=no'
<axd-v>has there been some kind of an update to guix's UX? Now it tells me what files it's compiling and stuff, very nice changes. But I also notice that running guix pull for my main user and root at the same time causes some conflicts now. As in: my root user is "waiting for locks or build slots". Is this a regression or I just never paid enough attention?
<axd-v>I guess it's nice not to have the two processes fight for resources, since the cpu is still utilized to the max.
<roptat>my terminal and java things seem broken when I try to enter UTF-8 characters
<civodul>ngz: in a single-user setup you could also run 'guix pull' for the same commit for both root and the user
<axd-v>cbaines: civodul: thank you for the explanation. Yeah it is very nice, more informative. I still wish that guix would offer some basic info like standard package managers do. I.e. amount of packages to be downloaded, the total size, what already exists on the system will just be linked into the user profile, tell you what's going to be rebuilt from scratch (useful for linux-libre, icecat, qutebrowser updates with large rebuilds) and
<axd-v>what packages there are substitutes for. There is also this wall of text that always happens that just says `substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%` for 20 lines straight. Idk why it gets cut off, but it's useless in its current state. Plus shouldn't there be just one list of substitutes (but I don't really know how guix works yet so free to ignore this last remark)
<civodul>or you could indeed link ~/.config/guix/current of one account to the other account's link
<civodul>jlicht: you can do: guix gc -R $(which xyz) | grep glibc
<axd-v>civodul: thank you very much for the info, I'll look into guix-build a bit closer, I usually install stuff straight away so haven't messed around with the build system manually. Maybe in the future guix could have a --verbose option, in the absense of which it would provide more of a summary than a detailed information during an update. You're probably going to say that it does that already, so I'll retreat to the info manual hehe. I
<axd-v>love your work, thank you so much for everything you do.
<civodul>OriansJ`: right, we could do it that way too
<civodul>so yeah hulten, like OriansJ` writes, maybe you can simply defined an "activation snippet" or a Shepherd service that does what you want at startup
<hulten>Yeah, but what I wanted to do did not work with herd.. it is nfs mounting, and the system 'hung' while booting... though, not I think of it, I'm not certain if that would not happen through a cron job @reboot.
<hulten>With such an "activation snippet", can I tell it it should wait for certain services, like networking?
<hulten>civodul, OriansJ, this is probably not so difficult (after reading docs). Indeed, a shepherd service for this would be much nicer than doing this indirectly via the mcron service (which cannot do @reboot anyway)!