Erlang Development with Guix

2022-06-29 Thread jgart
Hi Guixers,

Has anyone tried loading any guix installed erlang libraries yet?

I was thinking in an erlang shell (repl).

Is there a guide that shows the particularities of using erlang with
guix for development, or a mailing list thread I can read?

Any help with that is much appreciated.

all best,

jgart



Help to debug a try with home-mcron-service-type on guix home

2022-06-29 Thread Sébastien Rey-Coyrehourcq


Hi guix !

I'm trying to config a mcron service type for mbsync, something 
simple, but there are few example on the web for the new 
home-mcron-service-type. I try something like this :


(use-modules (gnu packages mail)
(gnu packages tls)
(gnu home services mcron))


(define update-mail-service
 #~(job '(next-minute '(range 0 60 5))
(lambda ()
  (execl (string-append #$isync "/bin/mbsync")
 "mbync"
 "-a"))
"fetch mail"))

(define-public %mail-module
 (home-module
  (list mu
isync
imapfilter
msmtp
gnutls)

  (list
   (simple-service 'isync-mail-config-service
   home-files-service-type
   `(
 (".mbsyncrc" ,(local-file 
 "../config/mail/mbsyncrc"))
 (".msmtprc",(local-file 
 "../config/mail/msmtprc"))
 (".imapfilter/config.lua",(local-file 
 "../config/mail/config.lua"

   (simple-service `mcron-mail-update-service
   home-mcron-service-type
   (list update-mail-service))
   )))

but when i run reconfigure, i have an error in drv compilation :

Backtrace:
  7 (primitive-load 
  "/gnu/store/dpaczpr4j05437bk4dr1snqnfjx9ipfl-mcron-1.2.1/bin/mcron")

In mcron/scripts/mcron.scm:
   103:6  6 (main)
In ice-9/boot-9.scm:
  260:13  5 (for-each #  mcron/scripts/mcron.scm:103:16 (file)> _)

In unknown file:
  4 (eval-string "update-mail-service" #  job-specifier) 74035780>)

In ice-9/boot-9.scm:
  2835:4  3 (save-module-excursion #  ice-9/eval-string.scm:66:9 ()>)

In ice-9/eval-string.scm:
38:6  2 (read-and-eval # #:lang 
_)

In ice-9/eval.scm:
  223:20  1 (proc #  74035780>)

In unknown file:
  0 (%resolve-variable (7 . update-mail-service) 
  #)


ERROR: In procedure %resolve-variable:
Unbound variable: update-mail-service
Backtrace:
  2 (primitive-load 
  "/gnu/store/b3k8pm2gabw29rmb86r5j4j4jzz7847d-mcron-job-builder")

In ice-9/eval.scm:
   619:8  1 (_ #f)
In guix/build/utils.scm:
   762:6  0 (invoke 
   "/gnu/store/dpaczpr4j05437bk4dr1snqnfjx9ipfl-mcron-1.2.1/bin/mcron" 
   "--schedule=20" "prologue" "job")


guix/build/utils.scm:762:6: In procedure invoke:
ERROR:
 1. :
 program: 
 "/gnu/store/dpaczpr4j05437bk4dr1snqnfjx9ipfl-mcron-1.2.1/bin/mcron"

 arguments: ("--schedule=20" "prologue" "job")
 exit-status: 1
 term-signal: #f
 stop-signal: #f

Any help appreciated :) !
Best regards,



signature.asc
Description: PGP signature


How to reinstall the bootloader without guix system reconfigure?

2022-06-29 Thread Akib Azmain Turja

Hello everyone,

Today, I shrank my Losedows (Windows) partition by 100 GB.  Then I tried
to boot Guix, but found that GRUB is broken and the GRUB rescue prompt
appeared.  I thought that it's because of the 100 GB empty space in my
hard disk.  Fortunately, I have Ubuntu (yet another nonfree
distribution) installed and it didn't broke, so used that to add that
100 GB to my Guix partition.  But I found that GRUB is still broken.
Then I appended "/boot/grub/grub.cfg" of Guix to the same file of Ubuntu
and managed to boot into Guix and to write this mail you're reading now.

Now, if I'm correct, to fix the problem, I think the bootloader needs to
be reinstalled.  To do that, I have to run "guix system reconfigure".
But that will download too many thing, much more than it actually needs.
I know that "guix system delete-generations" also reinstalls bootloader
while not downloading too many things, however I don't have any previous
system generation, so I can't use that trick to reinstall the GRUB.

Is there any way to reinstall bootloader without the costly "guix system
reconfigure"?

Another non-important question:  Why did Guix's GRUB broke while
Ubuntu's GRUB survived?

Thanks in advance.

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5


signature.asc
Description: PGP signature