<xd1le>Noob question: I'm trying to package something do I write it's package definition and put it as 'guix.scm' under the packages source directory. Then I run `guix build -f guix.scm --with-source=.` from the source directory but it says "guix build: warning: transformation 'with-source' had no effect on polybar-2.5.2" :( . So how do I get guix to build from source directory? (To check if my package object is correct.. I assume this is what people do?)
<xd1le>I've packaged things before but they were much simpler do didn't need to check it with guix build
<cbaines>Are you using a checkout of the main guix git repository?
<xd1le>Also does git-fetch, from (guix git-download) clone recursively? Because that's what I need
<divansantana>weird, still not working. On tt1 I did herd stop guix-daemon, set http_proxy and ran `/gnu/store/3q8n67qwz3vslzbq3kpl03hhlvj6isc0-guix-0.12.0-1.c8e2/bin/guix-daemon --build-users-group guixbuild --substitute-urls https://mirror.hydra.gnu.org`
<divansantana>on tty2 I try guix package -i wget and I see it's still not using proxy
<xd1le>cbaines: for reference, the docstring says it gives the absolute name of the current directory, so it's good! also the build tried to build the correct source! :)
<xd1le>A cmake-build-system build fails because it requires either clang-3.4+ or gcc-5.1+. Anyone know how to point the build process to gcc-5.1+?
<xd1le>I think the answer might be just to add the appropriate gcc as an input..
<cehteh>why doesnt guix have a rather normal /etc where *all* daemon configuratons are editable in their native format, and on 'system reconfigure' this gets imported and nailed down into the store (sans git/etckeeper) *thinking*
<cehteh>would need some solution for the mutable files in etc (resolv.conf, mtab ..)
<davexunit>cehteh: that goes counter to what guixsd aims to achieve
<davexunit>it may require work for each service, but people write Chef cookbooks, Ansible playbooks, etc. that are analogous to GuixSD services in many ways that allow programmatic configuration of software.
<davexunit>at work we use Chef and I can find a cookbook for just about any daemon that provides a Ruby interface to all of the possible configuration.
<cehteh>davexunit: etc should just become part of a profile (entirely), but root (or whoever is allowed too) has some shadow copy which is editable, but not active, system reconfigure imports this shadow /etc into the store and from there its hooked into the system profile and used
<davexunit>creating log directories, initializing mysql data directory,
<civodul>i think there's a need for a "quick-hack" more that does not involve a full reconfigure
<cehteh>and if so, still i dont see a difference, i am only talking about the bits generating the configfile which is currently done with scheme expressions, not about any additionally machinery
<davexunit>there's enough of these cases where using opaque config files isn't going to work well.
<civodul>but it should be possible to do so by generating service/config files and telling shepherd to load them
<davexunit>because you haven't eliminated the need to write scheme. you still need to tell shepherd a bunch of things about what's in the config file.
<cehteh>the problem i have with the scheme thing is that i am not that much familar with scheme, still learning and when i look at some config files (squid for example) which are excellent documented from their examples, it makes me a bit sad that so much information gets lost
<cehteh>also on servers i administrate i often write annotations for other admins into the config file; ok that would be possible in scheme too
<cehteh>biut the scheme stuff has a steep learning curve and doesnt scale well
<davexunit>"doesn't scale well" is an unsubstantiated claim.
<pareidolia>civodul: What's the current status of guix-nix compatibility? I tried to get nix to talk to the guix server, but it failed because a "builtin:fetchurl" builder was not found
<janneke>civodul: i tried to start guile-wm and failed again...i was almost ready to ask here about it, when i found that i can simply run it in my stumpwm environment. so, i'm again looking into it...a bit. now that you ask...
<janneke>when i choose `guile-wm' in slim, i get my desktop background and the message: `logging in...'
<janneke>after < 0.5s an error-message is printed right over that, saying something like; `login failed' but i cannot read it because it dissapears quickly and is scrambled by the `logging in...' background
<janneke>are these messages logged somewhere/how do i debug this?
<ng0>fish has the policy to include all/many completions in their upstream. if my completion for guix will use the license of guix, will it still be compatible to the way they do this, or is there some fundamental difference between their license and ours? afaik its gpl2 vs gpl3
<janneke>civodul: ugh! i have given up on our emacs, using an older version
<ng0>I could however make my completion either external OR just make it CC0
<ng0>CC0 would allow it to be in the guix source and in fish source
<cehteh>davexunit: i see the advantages too, but to be truely unified there is still a lot to do like (ssh-sevice-flavor "lsh") (or "openssh") and then (ssh-service ... with one unified configuration, only things which are special to each flavor are unique then
<rekado_>ng0: you only have problems when they have GPLv2 only.
<rekado_>ng0: then it makes sense to just use that license as well and contribute upstream.
<ng0>I'd rather have the easy way and put it into etc/completion where already zsh and bash are
<cehteh>there are also a lot bumps on the road, i asked some time ago, why not pick the first service definition instead error out with double service definiton, because most people dont know what exactly %base-services or %desktop-services contain and want to customize single things without the whole rewriting lore
<ng0>I think I will choose the middlepath, cc0 in an external project which both projects can then use and include if they want to.
***jonsger1 is now known as jonsger
<Apteryx>Is there a way to query the guix-daemon to determine what values it's using?
<Apteryx>I'd like to know what authorized-keys it's configured to use to validate that my recent addition to config.scm works.
<cehteh>problems are in the eye of the beholder, someone who develops for guix and has some deeper knowledge may find a lot things trivial which are hard for someone new and maybe even turn people away
<davexunit>disagreeing on implementation is well and good provided that we both agree on the general principles. :)
<cehteh>but some things could be unarguably being easier, like the example configs could have commented out templates for things, they should all have a setup wich includes networking, whenever lists are concatenated cons* should be used even in the simple (cons* element %defaults) case
<cehteh>this are little things which wont break anything, but make configuration easier and more orthogonal
<Apteryx>Finally found how to make scroll lock work for XTerm: in ~/.Xresources, add "XTerm*vt100.allowScrollLock: true". Then run "xrdb ~/.Xresources". Relaunch XTerm; when you need to lock srolling the "scroll lock" keyboard key should do it.
<cehteh>also an example about how to modularize the config.scm would be nice, putting users, services preinstalled packaged into distinct files
<cehteh>something else, is there any standard way to pass a secret from grub to the initrd. I am thinking about full system encryption, when the user enters the passphrase it might be hashed again and that passed to the initrd
<cehteh>using a 2nd slot to unlock the partition on kernel boot, and then dispose it
<Apteryx>It'd be nice if we could see the download speed of substitutes.
<Apteryx>The system reconfigure process appears hang on: From ftp://ftp.ciril.fr/pub/cpan/authors/id/J/JS/JSTOWE/TermReadKey-2.32.tar.gz... (like 10 minutes), but it might just be that it's downloading at 0.1 kbps.
<Apteryx>Oh actually for the previous substitutes it was displayed.
<Apteryx>"C-h f guix" requests more input to complete: --> Describe function: guix-emacs-
<Apteryx>Then if I choose "guix-emacs-autoload-packages" it shouws me the docstring of it, apparently it comes from "guix-emacs.el" which lives in /gnu/store/dvfnvxq3hy0b56bdcyw0730gvl8s3vdx-emacs-25.1/share/emacs/site-lisp/
<alezost>Apteryx: so davexunit is right; you had an old emacs stuff that was bundled with Guix, but it's not anymore; so if you still want to use it you can do "guix package -i emacs-guix"
<cbaines>Does anyone know much about the system tests? I've been using guix system container lots, and want to write some tests, but I think all of the system tests in Guix use a VM. How easy would it be to adapt the system test code to work with containers or VMs?
<civodul>cbaines: the problem is that system containers need to run as root
<civodul>so yes, the test framework has VMs and QEMU pretty much hardcoded right now
<cbaines>at the moment, I've got as far as a guix system container which has a service that runs some tests (written in ruby, testing other services), and then writes the results to a file, and then tells shepherd to stop the system
<civodul>i'd welcome improvements to make it more abstract
<ZombieChicken>I was just wondering if there was any known reason why Grub wouldn't install onto a seperate drive (say, a USB) that was used to boot another set of disk (so /boot is on a removeable thumb drive)
<ZombieChicken>I'm convinced there is a middle ground between vim and emacs that would make both parties happy
<buenouanq>I'm sure vim is a fine way to edit - But if you're not using it through emacs (with evil-mode or whatever), you don't understand something. I'm not sure what exactly, but it's very important.
<buenouanq>like with that sentence, vim and emacs shouldn't be compared like that in any way