Guix packaging tutorial with hand holding
Hi Guix: I'd like to advance step-by-step in learning how to write package definitions with the eventual goal of contributing to Guix. For this I'd like to ask if someone could help me and other Guix-hacking-packaging beginners with some hand holding — concrete though, with examples, so I could then proceed through trial and error. I've tried to follow the Guix packaging tutorial guide [1]. I can build and install the sample my-hello package with the from-file approach. Next, I'd like to build and install the sample my-libgit2 package. Here, however I can't proceed: The tutorial is old so it mentions the “GUIX_PACKAGE_PATH” approach which is deprecated and recommends using Guix channels. In the Guix manual I see the way to add a channel to your Guix, now is there a way to use a local git directory? So that I could experiment locally — without right away going through syncing the local git with an online git repository? If not I'll guess I'll have to go through Github just to play with some intro stuff. Second, working on the Guix git checkout is recommended as the best way. What is the way of working with Guix git checkout on a GuixSD system? I.e. should I pull, build it — the git. Then what? Where to run guix pull and guix package -u — in the git, leave the SD versions un-updated? Finally, are there some nice examples of using inheritance? I.e. I just want to add a compile option, or some dependency to some package — is there some example I can play with? Many thanks for any help! :@) [1] https://www.gnu.org/software/guix/blog/2018/a-packaging-tutorial-for-guix/ -- Best regards / 宜しく御願い致します / S pozdravem / C уважением / Z poważaniem / Mit freundlichen Grüßen 白い熊
Re: Packaging udev rules along with their binary
On 2019-05-29, LaFreniere\, Joseph wrote: > I am attempting to package brightnessctl [0]. The repository > provides relevant udev rules in a file 90-brightnessctl.rules, and > its makefile has allowances for optionally copying and chmoding > those rules. It's already packaged in Guix since late March (commit ab7f1eb97abd49676f8e98e35e861f9785f0c2b2). It includes the udev rules file ion the package. I forget exactly what I did to configure the udev rules, but I recall using one of the options right out of the manual: https://www.gnu.org/software/guix/manual/en/html_node/Base-Services.html Enjoy! live well, vagrant signature.asc Description: PGP signature
Re: how to unmount disk after guix system init error?
Hello znavko, zna...@disroot.org writes: [...] > I cannot do this. I fullfilled this but making filesystem on /dev/sdb2 gives > the error, that device is mounted. > As I understand this is because of my run 'herd start cow-store /mnt' and > also run `guix system init /mnt` > I've stopped herd service. But do not know what to do else. So I can only > reboot and start again. > > Please is there another way to solve? No, AFAIU there is no way other than restart the machine I'm almost sure there's an already opened bug for this but I cannot find it now :-S HTH! Gio' -- Giovanni Biscuolo Xelera IT Infrastructures signature.asc Description: PGP signature
Re: Librem 15v3: sound through HDMI cable
Wed May 29 19:10:01 GMT+02:00 2019 L p R n d n : > My workaround in pavucontrol is to set Profile in the Configuration tab > to something vaguely related to HDMI and it usually works. Maybe it > could work for you too until we fix this properly? This does work indeed — many thanks! :@) -- Best regards / 宜しく御願い致します / S pozdravem / C уважением / Z poważaniem / Mit freundlichen Grüßen 白い熊
Re: Librem 15v3: sound through HDMI cable
Hello, Under Guix system, I also don't get sound through HDMI automaticaly. HDMI doesn't appear in pavucontrol's output but it does appear with gnome-settings and the likes so I suppose it's related to pulseaudio? My workaround in pavucontrol is to set Profile in the Configuration tab to something vaguely related to HDMI and it usually works. Maybe it could work for you too until we fix this properly? Hope it helps. Have a nice day, L p r n d n
Librem 15v3: sound through HDMI cable
Hi Giux: I'm running GuixSD on a Librem 15v3 — this seems to me an ideal setup: the only completely free notebook with the best GNU free system! :@) I have a simple use case - I’d like to hook up my TV to the Librem 15v3 with an HDMI cable and watch movies on the TV from the notebook. It outputs video fine - the picture displays on the TV - but the sound comes out from the notebook’s speaker. If I boot up the Librem under it's default PureOS — it works fine. I’ve confirmed that when I plug in the HDMI cable I see “HDMI / DisplayPort (plugged in)” as a “Port” option on the “Output Devices” tab in pavucontrol. When it’s selected, sound does go through! :@) Now, I’d predominantly like to use GuixSD as my OS on the Librem. Here however, when I plug in the HDMI cable I don’t see the “HDMI / DisplayPort (plugged in)” as a “Port” option on the “Output Devices” tab in pavucontrol. I only see the default “Speakers” and “Headphones (unplugged)” options — the same as under PureOS when no HDMI cable is plugged in. I do however get the video through, but not the audio. It stays on the PC speaker. Would anyone have an idea on what’s causing, what I could set up in GuixSD to get the HDMI cable as an output option — so I could get the sound to the TV? -- Best regards / 宜しく御願い致します / S pozdravem / C уважением / Z poważaniem / Mit freundlichen Grüßen 白い熊
Re: PrivateInternetAccess VPN and Guix
Thank you! So I managed to get it working mostly okay through installing openvpn and running sudo (should I actually be running this as sudo?) --config my-openvpn-config.opvn Note: Attempting to use the gnome network settings did not work and complains it couldn't find a vpn connection. Possibly due to how the .opvn file is formatted? On 29.05.2019 05:04, Meiyo Peng wrote: Hi, oury.dus...@posteo.net writes: So I'm trying to get a VPN up and running on Guix System, but unfortunately I'm not able to run it. It gives an error here: Verifying archive integrity... 100% MD5 checksums are OK. All good. Uncompressing Private Internet Access 100% Downloads/pia-linux-1.1.1-02545.run: ./install.sh: /bin/bash: bad interpreter: No such file or directory Downloads/pia-linux-1.1.1-02545.run: line 616: /bin/rm: No such file or directory Guix does not comply with FHS [1]. So there is no /bin/bash and /bin/rm. We do not support third-party binary packages. Please do not install them on Guix system. These packages will not work normally on Guix. (Yes. There are dirty tricks to make them work. But we do not recommend them.) PrivateInternetAccess provides OpenVPN access [2]. Please try the free OpenVPN package from Guix: `guix package -i openvpn`. Which I suppose relates to the way Guix packages software. I know it works easily on Trisquel at least, but I enjoy Guix System very much already! Guix is very different from traditional GNU/Linux distros. Have fun with Guix! And feel free to ask questions here. Reference: 1. https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard 2. https://www.privateinternetaccess.com/pages/client-support/ -- Meiyo Peng https://www.pengmeiyu.com/