guix.scm and manifest.scm environment

2024-01-09 Thread jgart
Hi Guixers,

Are the modules that are automatically pulled in to a guix.scm or manifest.scm 
documented?

Those files are just scheme code but specifications->manifest is available in 
the global namespace, for example.

What else is there by default?

all best,

jgart



Instructions for generating the exact ISO on homepage

2023-12-29 Thread jgart
Hi Guixers,

What if we provide explicit instructions for generating the exact ISO on the 
homepage in a reproducible fashion?

https://guix.gnu.org/en/download/

Let's assume that the instructions are written for a new user who's not 
intimately familiar with Makefiles and doesn't know that their is a make target 
that produces it IIRC.

WDYT



--debug LEVEL not documented in CLI

2023-11-14 Thread jgart
Hi Guixers,

--debug is not documented in the CLI. 

What debug LEVEL's are permissible?

For example, is 79 allowed?

Or 5, 4, 3, 2, 1?

What is the difference between the LEVELs? Where is the input LEVEL cutoff? At 
6?

The --help says the following only:

--debug=LEVEL  produce debugging output at LEVEL

WDYT



Re: -v, --verbosity=LEVEL use the given verbosity LEVEL

2023-10-05 Thread jgart
Some prescriptive logging documentation for inspiration:

https://textual.textualize.io/guide/devtools/#increasing-verbosity



Re: -v, --verbosity=LEVEL use the given verbosity LEVEL

2023-10-01 Thread jgart
Hi Maxim,

Thanks for the reply and info.

I don't mind doing the work to find out exactly what is being logged with deep 
understanding of Guile/Guix's logging mechanism. A bird's eye view while still 
understanding the low level and commenting on it.

It will require some time to do that research and write a good explanation.

I'm in no rush so I will try unless someone else gets to it first.

Might be good to talk with the person who wrote that logging to discuss the 
information and concepts involved in the context of guile and guix.

all best,

jgart



Re: -v, --verbosity=LEVEL use the given verbosity LEVEL

2023-09-26 Thread jgart
> 1 is for quiet output; 2 is similar to 1 but it additionally displays 
> download URLs; 

> it additionally displays

I think it is confusing to use the word "additionally" here as there is nothing 
that we know about the quiet output for the description that let's us then 
conceptualize what will be added to it.

In other words, level 1 should be described with more detail than "1 is for 
quiet output". 

What should we expect to see in the content of verbosity level 1 in general.

I would have to find the time to conduct some empirical usages with the 
--verbosity flag to answer that question succinctly and in the general across 
guix subcommands beyond just describing it as "quiet output".

WDYT, nitpick? maybe/maybenot

jgart



Re: -v, --verbosity=LEVEL use the given verbosity LEVEL

2023-09-26 Thread jgart
Hi Maxim,

But it's not below in the --help of `guix build` command.

It just says

> use the given verbosity LEVEL

```
[jgart@fedora_user ~]$ guix build --help
...
  -d, --derivations  return the derivation paths of the given packages
  --checkrebuild items to check for non-determinism issues
  --repair   repair the specified items
  -r, --root=FILEmake FILE a symlink to the result, and register it
 as a garbage collector root
  -v, --verbosity=LEVEL  use the given verbosity LEVEL
  -q, --quietdo not show the build log
...
```

But what if the user doesn't know what the verbosity LEVELs are?

And what if the user also doesn't know that they are documented in the info 
manual?



Re: -v, --verbosity=LEVEL use the given verbosity LEVEL

2023-09-26 Thread jgart
Hi Maxim,

That's awesome documentation! Thanks for doing that. Approved.

Do you want to merge this?

yours truly,

jgart



-v, --verbosity=LEVEL use the given verbosity LEVEL

2023-09-23 Thread jgart
Hi Guixers,

Where should the user of the Guix command-line interface be expected to read 
about the verbosity LEVEL argument that they can pass to `--verbosity` and that 
is also valid?

all best,

jgart



Re: guix build: error: gcry_md_hash_buffer: Function not implemented

2023-05-14 Thread jgart
Hi,

Can this be closed now given the recent mention of --sysconfdir?

https://issues.guix.gnu.org/47401#1

all best,

jgart



Re: firefox window crashes when opening dialog box on xfce

2023-05-13 Thread jgart
Good idea. I'll try that and get back to you. Thanks



firefox window crashes when opening dialog box on xfce

2023-05-13 Thread jgart
hi,

My Firefox window crashes when opening a dialog box using xfce-service-type on 
Guix System.

Any thoughts on where I can start debugging this?



Re: guix build: error: gcry_md_hash_buffer: Function not implemented

2023-05-07 Thread jgart
Hi Maxim,

I just read 26a788ae06.

That reads great! 

Thank you for improving the documentation on that. It is much appreciated.

all best,

jgart



Re: guix build: error: gcry_md_hash_buffer: Function not implemented

2023-05-07 Thread jgart
> Unfortunately, in the manual as a whole,
> there is no documentation that explains what this argument does.

Mekeor,

That's why I was asking because I never saw it explained in the Guix manual.

Maybe it is some GNU tribal knowledge that we are expected to eventually learn? 
dunno.

But, Efraim just gave a nice TLDR.

I'll try to find sometime to rework what he said into the docs unless someone 
else gets to it first ;()

all best,

jgart



Re: guix build: error: gcry_md_hash_buffer: Function not implemented

2023-05-07 Thread jgart
> Sorry. I meant "./configure --localstatedir=/var --sysconfdir=/etc".

Hi, thanks.

Is the --sysconfdir necessary? 

I've never used that. What does it mean or where should I get the TLDR/RTFM(L) 
on it?



guix build: error: gcry_md_hash_buffer: Function not implemented

2023-05-05 Thread jgart
Look what I saw today:

guix build: error: gcry_md_hash_buffer: Function not implemented

WDYT

I was trying to do the following:

make -j5 && ./pre-inst-env guix build nnn

TMI?

help2man: can't get `--help' info from guix home
Try `--no-discard-stderr' if option outputs to stderr
make[2]: [Makefile:7023: doc/guix-home.1] Error 1 (ignored)



Re: shebang for python script?

2023-01-27 Thread jgart
> An attempt here: <https://issues.guix.gnu.org/61094>

Awesome!

Thanks for sending that. Much appreciated!

all best,

jgart



Re: shebang for python script?

2023-01-26 Thread jgart
Hi, thanks!! 

Should we document this approach in the manual somewhere? 

If so, where would be a good place to mention how to do this?


> --8<---cut here---start->8---
> #!/usr/bin/env -S guix shell python -- python3
> import numpy as np
> a = np.array([1,2])
> b = np.array([3,4])
> print(f"The dot product of {a} and {b} is: {np.dot(a, b)}")
> --8<---cut here---end--->8---
> 

> And to answer your other question about specific revision, I would do:
> 
> --8<---cut here---start->8---
> #!/usr/bin/env -S guix time-machine --commit=29efa27 -- shell python -- 
> python3
> import numpy as np
> a = np.array([1,2])
> b = np.array([3,4])
> print(f"The dot product of {a} and {b} is: {np.dot(a, b)}")
> --8<---cut here---end--->8---
> 
> Cheers,
> simon



Re: shebang for python script?

2023-01-24 Thread jgart
or this shebang pinned to a particular commit?

#!/usr/bin/env nix-shell
#!nix-shell -i python3 -p "python3.withPackages(ps: [ ps.numpy ])"
#!nix-shell -I 
nixpkgs=https://github.com/NixOS/nixpkgs/archive/d373d80b1207d52621961b16aa4a3438e4f98167.tar.gz
import numpy as np
a = np.array([1,2])
b = np.array([3,4])
print(f"The dot product of {a} and {b} is: {np.dot(a, b)}")

https://ryantm.github.io/nixpkgs/languages-frameworks/python/



shebang for python script?

2023-01-24 Thread jgart
Hi Guixers,

What's the current recommended way to do this in Guix?

#!/usr/bin/env nix-shell
#!nix-shell -i python3 -p "python3.withPackages(ps: [ ps.numpy ])"
import numpy as np
a = np.array([1,2])
b = np.array([3,4])
print(f"The dot product of {a} and {b} is: {np.dot(a, b)}")



Tilix launches fine from a terminal but fails to launch from GNOME main app launcher (window key press tilix)

2023-01-21 Thread jgart
Hi,

Tilix launches fine from a terminal (I tested on gnome-terminal) but fails to 
launch from the GNOME main app launcher (window key press tilix).

I'm looking into it but just wanted to share in case anyone knows offhand what 
to do here.

all best,

jgart



Gajim: Sorry, that should not have happened

2023-01-07 Thread jgart
Hi,

I get this gajim error on Guix System:


Here's a screenshot of the error (expires in one week):

https://up.nixnet.services/6d3cbuxb.png

paste of the error

## Versions:
- OS: Linux 6.0.12
- GTK Version: 3.24.30
- PyGObject Version: 3.40.1
- GLib Version : 2.70.2
- python-nbxmpp Version: 3.1.0
- Gajim Version: 1.4.6

## Traceback
```
Traceback (most recent call last):
  File 
"/gnu/store/ss8z4dgh3zpylai67yc99dngd87bj0kf-gajim-1.4.6/lib/python3.9/site-packages/gajim/common/modules/bookmarks.py",
 line 265, in _join_with_timeout
self.auto_join_bookmarks(bookmarks)
  File 
"/gnu/store/ss8z4dgh3zpylai67yc99dngd87bj0kf-gajim-1.4.6/lib/python3.9/site-packages/gajim/common/modules/bookmarks.py",
 line 271, in auto_join_bookmarks
self._con.get_module('MUC').join(bookmark.jid)
  File 
"/gnu/store/ss8z4dgh3zpylai67yc99dngd87bj0kf-gajim-1.4.6/lib/python3.9/site-packages/gajim/common/modules/muc.py",
 line 272, in join
self._set_muc_state(muc_data.jid, MUCJoinedState.JOINING)
  File 
"/gnu/store/ss8z4dgh3zpylai67yc99dngd87bj0kf-gajim-1.4.6/lib/python3.9/site-packages/gajim/common/modules/muc.py",
 line 206, in _set_muc_state
contact.notify('state-changed')
  File 
"/gnu/store/ss8z4dgh3zpylai67yc99dngd87bj0kf-gajim-1.4.6/lib/python3.9/site-packages/gajim/common/helpers.py",
 line 1268, in notify
func(self, signal_name, *args, **kwargs)
  File 
"/gnu/store/ss8z4dgh3zpylai67yc99dngd87bj0kf-gajim-1.4.6/lib/python3.9/site-packages/gajim/gtk/controls/groupchat.py",
 line 238, in _on_muc_state_changed
if self.contact.is_joining:
AttributeError: 'BareContact' object has no attribute 'is_joining'

```
## Steps to reproduce the problem
...


(ins)bash-5.1$ guix home describe
Generation 242  Jan 06 2023 17:44:09(current)
  file name: /var/guix/profiles/per-user/jgart/guix-home-242-link
  canonical file name: /gnu/store/di22nbf4zi5lvvs74xm1byslygb1183h-home
  channels:
guix:
  repository URL: https://git.savannah.gnu.org/git/guix.git
  branch: master
  commit: 6f8a03fad32261b6d4b38991f6757fb0bcc4bd86
rde:
  repository URL: https://git.sr.ht/~abcdw/rde
  branch: master
  commit: d7e8950a1eb0e189455991fee2168577c411642d
druix:
  repository URL: https://github.com/drewc/druix.git
  branch: main
  commit: 451b637036a01831a23deb4e14028f357271d1de
nonguix:
  repository URL: https://gitlab.com/nonguix/nonguix
  branch: master
  commit: 2e604d2296e8987058d7c32e5592f56d14e9f8dd
emacs:
  repository URL: https://github.com/babariviere/guix-emacs
  branch: master
  commit: 69e8b906cd9d0c29149bae35754052a81a8de509
guixrus:
  repository URL: https://git.sr.ht/~whereiseveryone/guixrus
  branch: master
  commit: 5a4f5034078c1bdbab86d60d116c0eb8fb7247e0
  configuration file: 
/gnu/store/cdyiw8v9k2fdlbh431wmbd4334gzqnnv-configuration.scm
(ins)bash-5.1$ guix system describe
Generation 28   Dec 25 2022 11:50:24(current)
  file name: /var/guix/profiles/system-28-link
  canonical file name: /gnu/store/kh90ilr3amanzi98fzdkkcb1nmdgmixa-system
  label: GNU with Linux 6.0.12
  bootloader: grub-efi
  root device: UUID: ea59ba4a-8f90-45f0-a799-fc57704547da
  kernel: /gnu/store/m7yf6zvd932a42h1962xd5wd7l4s6r9j-linux-6.0.12/bzImage
  channels:
guix:
  repository URL: https://git.savannah.gnu.org/git/guix.git
  branch: master
  commit: 91bcc26b1c97d440c203ea9e258ca56a89377bc8
nonguix:
  repository URL: https://gitlab.com/nonguix/nonguix
  branch: master
  commit: e662a42388490a2736276c2051aaf5cd3693a1cc
guixrus:
  repository URL: https://git.sr.ht/~whereiseveryone/guixrus
  branch: master
  commit: b72dbabc2c40122609fd92b4c52bdf8ae9e16426
  configuration file: 
/gnu/store/k1ybmr2h37hn26awm6655j8473gajabw-configuration.scm

WDYT



Fwd: PinePhone Pro & Guix

2022-12-28 Thread jgart
Sorry! I forgot to change the Subject for the digest. I hope this works...

 Forwarded message ---
From: "jgart" 
To: help-guix@gnu.org
CC: phod...@protonmail.com, gnu...@cyberdimension.org, 
forevercomput...@gmail.com, fah...@gmail.com
Sent: December 28, 2022 10:51 PM
Subject: Re: Help-Guix Digest, Vol 85, Issue 50

>> Hi all, I'm trying to write a guix code that will generate images
>> for pinephone pro. Can anyone share the config .scm file if anyone
>> has done it? Thanks.

Hi Guixers,

I would ask fare, I've cc'ed fare, who's using Pinephone Pro with Guix System.

https://github.com/fare/guixcfg/blob/313e6d5e619b7ed551154eda29957b60d0221b7e/deepness.scm#L1

I started packaging sxmo stuff for Guix a while back.

We have a few things here:

https://packages.guix.gnu.org/packages/sxmo-st/0.8.4.1

There's some sxmo stuff in guixrus. I'll upstream them this week:

https://git.sr.ht/~whereiseveryone/guixrus/tree/master/item/guixrus/packages/suckless.scm#L214
https://git.sr.ht/~whereiseveryone/guixrus/tree/master/item/guixrus/packages/suckless.scm#L233
https://git.sr.ht/~whereiseveryone/guixrus/tree/master/item/guixrus/packages/suckless.scm#L255

all best,

jgart

https://whereis.みんな



Re: PinePhone Pro & Guix

2022-12-28 Thread jgart
Hi,

I sent all three sxmo packages from guixrus for review:

https://issues.guix.gnu.org/60394
https://issues.guix.gnu.org/60395
https://issues.guix.gnu.org/60396

best,

jgart
 
https://whereis.みんな



Re: Help-Guix Digest, Vol 85, Issue 50

2022-12-28 Thread jgart
>> Hi all, I'm trying to write a guix code that will generate images
>> for pinephone pro. Can anyone share the config .scm file if anyone
>> has done it? Thanks.

Hi Guixers,

I would ask fare, I've cc'ed fare, who's using Pinephone Pro with Guix System.

https://github.com/fare/guixcfg/blob/313e6d5e619b7ed551154eda29957b60d0221b7e/deepness.scm#L1

I started packaging sxmo stuff for Guix a while back.

We have a few things here:

https://packages.guix.gnu.org/packages/sxmo-st/0.8.4.1/

There's some sxmo stuff in guixrus. I'll upstream them this week:

https://git.sr.ht/~whereiseveryone/guixrus/tree/master/item/guixrus/packages/suckless.scm#L214
https://git.sr.ht/~whereiseveryone/guixrus/tree/master/item/guixrus/packages/suckless.scm#L233
https://git.sr.ht/~whereiseveryone/guixrus/tree/master/item/guixrus/packages/suckless.scm#L255

all best,

jgart

https://whereis.みんな/



geiser-repl--wait-for-prompt: No prompt found!

2022-12-28 Thread jgart
Hi Guixers,

Any idea why I might be getting this error message when starting geiser with 
guile on a guix module?

> geiser-repl--wait-for-prompt: No prompt found!

Here's my "perfect setup":

https://git.sr.ht/~whereiseveryone/conf/tree/gnome/item/emacs.el#L133



%compiled-modules deprecation

2022-12-14 Thread jgart
hi,

in derivations.scm the folling line mentions that this is deprecated:

1190:51(define* (%compiled-modules store modules ;deprecated

what is the new api?




Trying to build lilypond but guix downloads firefox?

2022-12-14 Thread jgart
Hi,

Is there a reason why I would see this in stdout when I run ./pre-inst-env guix 
build lilypond?

substituting 
/gnu/store/n6w5qizdwx2kpas061dcn5gdgvaqlwr1-firefox-91.13.0esr.source.tar.xz...

Just trying to understand why guix would try to download firefox when I try to 
build lilypond...

all best,

jgart




doubly quoted list in gnu-build

2022-12-06 Thread jgart
hi,

why do the configure-flags and make-flags need to be doubly quote in the 
gnu-build procedure?

(define* (gnu-build name inputs
#:key
guile source
(outputs '("out"))
(search-paths '())
(bootstrap-scripts %bootstrap-scripts)
(configure-flags ''()) ; here
(make-flags ''()) ; here
(out-of-source? #f)
(tests? #t)
(test-target "check")
(parallel-build? #t)
(parallel-tests? #t)
(patch-shebangs? #t)
(strip-binaries? #t)
(strip-flags %strip-flags)
(strip-directories %strip-directories)
(validate-runpath? #t)
(make-dynamic-linker-cache? #t)
(license-file-regexp %license-file-regexp)
(phases '%standard-phases)
(locale "en_US.utf8")
(system (%current-system))
(build (nix-system->gnu-triplet system))
(imported-modules %gnu-build-system-modules)
(modules %default-modules)
(substitutable? #t)
allowed-references
disallowed-references)




Lispy Guile?

2022-11-29 Thread jgart
Hi Guixers!

Has anyone gotten Guile, Guix, and lispy to work with lispy--eval-scheme?

https://github.com/abo-abo/lispy/blob/9568ee1aa5ac12e0ed03b9904b77c7a5bc4bb2e2/le-scheme.el#L40
https://github.com/abo-abo/lispy/issues/640



How do you do this with the new style?

2022-11-28 Thread jgart


Hi, how do you do the following with the new style?

(inputs `(("qbe" ,qbe)
  ("gcc:lib" ,gcc "lib")))




tilix tilix tilix

2022-11-26 Thread jgart
starting phase `check'
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
ldc2 -O -Igenerated/gtkd -Idemos/gtkD/TestWindow -c 
demos/gtkD/TestWindow/TestText.d -ofdemos/gtkD/TestWindow/TestText.o
ldc2 -O -Igenerated/gtkd -Idemos/gtkD/TestWindow -c 
demos/gtkD/TestWindow/TTextView.d -ofdemos/gtkD/TestWindow/TTextView.o
ldc2 -O -Igenerated/gtkd -Idemos/gtkD/TestWindow -c 
demos/gtkD/TestWindow/TestDrawingArea.d 
-ofdemos/gtkD/TestWindow/TestDrawingArea.o
ldc2 -O -Igenerated/gtkd -Idemos/gtkD/TestWindow -c 
demos/gtkD/TestWindow/TestTreeView.d -ofdemos/gtkD/TestWindow/TestTreeView.o
ldc2 -O -Igenerated/gtkd -Idemos/gtkD/TestWindow -c 
demos/gtkD/TestWindow/TestScales.d -ofdemos/gtkD/TestWindow/TestScales.o
ldc2 -O -Igenerated/gtkd -Idemos/gtkD/TestWindow -c 
demos/gtkD/TestWindow/TEditableCells.d -ofdemos/gtkD/TestWindow/TEditableCells.o
ldc2 -O -Igenerated/gtkd -Idemos/gtkD/TestWindow -c 
demos/gtkD/TestWindow/TestAspectFrame.d 
-ofdemos/gtkD/TestWindow/TestAspectFrame.o
ldc2 -O -Igenerated/gtkd -Idemos/gtkD/TestWindow -c 
demos/gtkD/TestWindow/TestImage.d -ofdemos/gtkD/TestWindow/TestImage.o
demos/gtkD/TestWindow/TestAspectFrame.d(34): Error: import 
`TestAspectFrame.TestDrawingArea` is used as a type
make: *** [GNUmakefile:257: demos/gtkD/TestWindow/TestAspectFrame.o] Error 1
make: *** Waiting for unfinished jobs

Test suite failed, dumping logs.
error: in phase 'check': uncaught exception:
%exception #< program: "make" arguments: ("test" "-j" "4" 
"DC=ldc2" "prefix=/gnu/store/rq4gswaiq0yx3mk4zr03hi5hzxk00fji-gtkd-3.9.0" 
"libdir=/gnu/store/rq4gswaiq0yx3mk4zr03hi5hzxk00fji-gtkd-3.9.0/lib") 
exit-status: 2 term-signal: #f stop-signal: #f>
phase `check' failed after 8.1 seconds
command "make" "test" "-j" "4" "DC=ldc2" 
"prefix=/gnu/store/rq4gswaiq0yx3mk4zr03hi5hzxk00fji-gtkd-3.9.0" 
"libdir=/gnu/store/rq4gswaiq0yx3mk4zr03hi5hzxk00fji-gtkd-3.9.0/lib" failed with 
status 2
note: keeping build directory `/tmp/guix-build-gtkd-3.9.0.drv-0'
builder for `/gnu/store/3sxy95m74p3sijpfdrjla88mnllfzsbb-gtkd-3.9.0.drv' failed 
with exit code 1
build of /gnu/store/3sxy95m74p3sijpfdrjla88mnllfzsbb-gtkd-3.9.0.drv failed
View build log at 
'/var/log/guix/drvs/3s/xy95m74p3sijpfdrjla88mnllfzsbb-gtkd-3.9.0.drv.gz'.
cannot build derivation 
`/gnu/store/yis8nw1k9akhvwlbci9yzkva2g0cw190-tilix-1.9.5.drv': 1 dependencies 
couldn't be built
guix build: error: build of 
`/gnu/store/yis8nw1k9akhvwlbci9yzkva2g0cw190-tilix-1.9.5.drv' failed

WDYT

(define-public tilix
  (package
(name "tilix")
(version "1.9.5")
(source
  (origin
(method git-fetch)
(uri (git-reference
   (url "https://github.com/gnunn1/tilix;)
   (commit version)))
(file-name (git-file-name name version))
   (sha256
(base32 "0sb1hypg2276y8c2a5vivrkcxp70swddvhnd9h273if3kv6j879r"
(build-system meson-build-system)
(arguments '(#:tests? #f #:configure-flags '("-Dbuildtype=debugoptimized")))
(inputs
 (list dbus
   gettext-minimal
   dconf
   gsettings-desktop-schemas
   gtkd
   libsecret
   libunwind))
(native-inputs
  (list desktop-file-utils
ldc
pkg-config
python-wrapper
appstream))
(home-page "https://gnunn1.github.io/tilix-web/;)
(synopsis "Tiling terminal emulator following the Gnome Human Interface 
Guidelines")
(description "Tilix is a tiling terminal emulator following the
Gnome Human Interface Guidelines.")
(license license:mpl2.0)))




shepherd logs gui

2022-11-25 Thread jgart
Could GNU shepherd benefit from an app like this? 
https://gitlab.gnome.org/GNOME/gnome-logs



Re: build all dependents?

2022-11-22 Thread jgart
On Tue, 22 Nov 2022 14:29:43 -0600 jgart  wrote:
> On Tue, 22 Nov 2022 12:06:43 -0800 Felix Lechner  
> wrote:
> How about "dag kiddies"?

or dag kittens?



Re: build all dependents?

2022-11-22 Thread jgart
On Tue, 22 Nov 2022 12:06:43 -0800 Felix Lechner  
wrote:
> Here, I would have used "consuming packages" instead of dependents,
> because the former is so clearly distinct from the ubiquitous but
> ambiguous word "dependencies".

How about "dag kiddies"?

> Happy hacking, and thank you all for your contributions to Guix!

Thank you too!



build all dependents?

2022-11-21 Thread jgart
hi guixers, 

is there a command to build all dependents of a package?

for example, i'd like to build all the dependents of python-identify
that are packaged in GNU Guix:

$ guix refresh python-identify -l
Building the following 14 packages would ensure 28 dependent packages are 
rebuilt: python-multivelo@0.1.2 repo2docker@2021.08.0 
python-matplotlib-documentation@3.5.2 python-numpy-documentation@1.21.6 
jami-docs@0.0.0-0.b00574b mdpo@0.3.6 python-flask-combo-jsonapi@1.1.0 
onionshare@2.5 python-jupytext@1.14.1 python-minikanren@1.0.1 
python-miio@0.5.11 python-interrogate@1.5.0 pre-commit@2.20.0 babi@1.5.3

I'd also like to filter out packages from guixrus. babi@1.5.3 is in guixrus.

wdyt



What passes in the inputs to the lambda?

2022-11-20 Thread jgart
In the following snippet, what passes in the inputs to the lambda?

(modify-phases %standard-phases
  (replace 'unpack
(lambda* (#:key inputs #:allow-other-keys)
  (let* ((source (assoc-ref inputs "source"))
 (guile-dir (assoc-ref inputs "guile"))
 (guile (string-append guile-dir "/bin/guile")))
(invoke guile "--no-auto-compile" source)
(chdir "bootar"



guix refresh only python-*

2022-11-20 Thread jgart
hi, how can I see only what python packages can be updated with guix refresh?

all best,

jgart



Channel as a Package?

2022-11-18 Thread jgart
Hi,

What does it mean for a channel to be a package?

For example, we have a channel-build-system which turns a channel into a 
package.

Why was this needed?

What purposes did it serve?

Why would we want to build Guix instances from channel specifications?

all best,

jgart



Re: (length all-python-packages)

2022-11-16 Thread jgart
On Wed, 16 Nov 2022 15:19:10 +0100 Andreas Enge  wrote:
> Hello,
> 
> Am Tue, Nov 15, 2022 at 08:36:35PM + schrieb (:
> > For me, this returns "2749".
> 
> more crudely, I tried this on the command line:
>./pre-inst-env guix package -A ^python | wc
> which returns 2165, or
>./pre-inst-env guix package -A ^python- | wc
> which excludes python2-packages and returns 2140, or
>./pre-inst-env guix package -A ^python- | awk '{print $1}' | uniq | wc
> which excludes duplicate package versions and returns 2091.
> 
> It looks like we have a lot of python packages that do not admit it
> in their name :)
> 
> Andreas
> 

Andreas and paren,

Thanks for the replies and examples. Much appreciated!

I imagine this does not include python packages like jrnl, khal, clikan, 
t-todo-manager, gajim etc?



Re: what might be wrong with my nightly function?

2022-11-16 Thread jgart
On Wed, 16 Nov 2022 07:08:10 +0100 Julien Lepiller  wrote:
> Haven't tested and you didn't share what was the issue. The obvious thing I 
> see is #:olive-hash is (base32 "…") by default, so the origin uses (sha256 
> (base32 (base32 "…"))) by default

Thanks for catching that one!

I think the other issue is the way I am constructing the version and
then calling it at the command line:

guix doesn't like this:

guix build -L . olive@3302c36


;; let's tracking nightlies!
(define* (make-olive-nightly #:key olive-commit olive-hash)
(package (inherit olive)
  (name "olive")
  (version (string-take olive-commit 7))
  (source
(origin
  (method git-fetch)
  (uri (git-reference
 (url "https://github.com/olive-editor/olive;)
 (commit olive-commit)))
  (file-name (git-file-name name version))
  (sha256
(base32 olive-hash
  (build-system cmake-build-system)
  (arguments `(,@(package-arguments olive)
 #:tests? #f
  
(define-public olive-3302c36
  (make-olive-nightly
#:olive-commit "3302c3633c665fd32152217f254b53654945f2dd"
#:olive-hash "0pp6dxn53aw6iiy9wnbkkmg8mcqpx8wy6nify8j4hrzvzrmks82c"))



what might be wrong with my nightly function?

2022-11-15 Thread jgart
hi, what might be wrong with this function?

;; let's tracking nightlies!
(define* (make-olive-nightly
   #:key (olive-commit "3302c3633c665fd32152217f254b53654945f2dd")
 (olive-hash (base32 
"0pp6dxn53aw6iiy9wnbkkmg8mcqpx8wy6nify8j4hrzvzrmks82c")))
(package (inherit olive)
  (version (string-take olive-commit 7))
  (source (origin
(method git-fetch)
(uri (git-reference
  (url "https://github.com/olive-editor/olive;)
  (commit olive-commit)))
(file-name (git-file-name name version))
(sha256
 (base32 olive-hash
  (build-system cmake-build-system)
  (arguments
   `(,@(package-arguments olive)
 #:tests? #f

(define-public olive-3302c36
  (make-olive-nightly
#:olive-commit "3302c3633c665fd32152217f254b53654945f2dd"
#:olive-hash "0pp6dxn53aw6iiy9wnbkkmg8mcqpx8wy6nify8j4hrzvzrmks82c"))

;; olive package


(define-public olive
  (let ((revision "2")
(commit "efa74c72a80522fdd85a56e7dee13e341b73de99"))
(package
  (name "olive")
  (version (git-version "0.2.0" revision commit))
  (source (origin
(method git-fetch)
(uri (git-reference
  (url "https://github.com/olive-editor/olive;)
  (commit commit)))
(file-name (git-file-name name version))
(sha256
 (base32
  "00zv1h9acf3z76ivy04272r4f6rv0yip4bx1vs5znajffnyaj0jm"
  (build-system cmake-build-system)
  (arguments
   `(#:configure-flags '("-DCMAKE_CXX_FLAGS=-Wno-error=shadow")))
  (inputs
(list qtbase-5
  qtmultimedia
  qttools
  qtsvg
  ffmpeg
  opencolorio-2
  openimageio
  portaudio
  zlib
  imath
  openexr-3
  ilmbase))
  (native-inputs
(list pkg-config))
  (home-page "https://olivevideoeditor.org;)
  (synopsis "Free non-linear video editor")
  (description
"@code{olive} is a free and open source non-linear video editor.")
  (license license:gpl3+





warning: failed to install locale: Invalid argument

2022-11-15 Thread jgart
Hi,

Any idea where this warning may be coming from? Let me know what details I 
should provide to debug this.

bash_profile? bashrc? I'm on void linux.

Could this be an issue caused by not running nscd properly?

I think this might also be related to the reason why my geiser-guile is not 
working (geiser-edit-complete-symbol-at-point)

guile: warning: failed to install locale
warning: failed to install locale: Invalid argument
GNU Guile 3.0.8
Copyright (C) 1995-2021 Free Software Foundation, Inc.




(length all-python-packages)

2022-11-15 Thread jgart
Hi,

How can I list how many Python packages we currently have in master?

What Guix APIs do you suggest that I hook into to determine this?



Re: Does define-command automatically add the subcommand to the guix CLI?

2022-11-15 Thread jgart
On Tue, 15 Nov 2022 18:08:23 + "("  wrote:
> Heya,
> 
> On Tue Nov 15, 2022 at 6:05 PM GMT, jgart wrote:
> it installs the extension code to #$output/share/guix/extensions. When it's
> installed that directory should be added to GUIX_EXTENSIONS_PATH 
> automatically.

There's no examples currently in the code base of an extension like
that, right?

But I get what you're sayin



Re: Does define-command automatically add the subcommand to the guix CLI?

2022-11-15 Thread jgart
On Tue, 15 Nov 2022 16:42:29 + "("  wrote:
> You don't need to anymore, because of commit bbc1735, no?

hi paren,

Does bbc1735 work on foreign distros also or ¯\_(ツ)_/¯?



Does define-command automatically add the subcommand to the guix CLI?

2022-11-15 Thread jgart
hi,

Does define-command automagically add the subcommand to the guix CLI?

For example, guix-format:

https://github.com/bqv/rc/blob/live/guix/scripts/format.scm#L21



Re: All 75 channel news entries are valid

2022-11-15 Thread jgart
On Tue, 15 Nov 2022 07:04:42 +0100 Julien Lepiller  wrote:
> Hi jgart, are you trying to use -L in the guix repository? Use pre-inst-env 
> instead.

Silly me. jgart needs a rubber ducky gnu by their desk.



Re: guix search across core-updates?

2022-11-15 Thread jgart
On Tue, 15 Nov 2022 07:18:27 +0100 Julien Lepiller  wrote:
> Hi jgart,
> 
> I think you could try with the time machine:
> 
> guix time-machine --branch=core-updates -- search …

Emmett "Doc" Brown blushes...



guix search across core-updates?

2022-11-14 Thread jgart
hi,

how can I search for packages across the core-updates branch with `guix
search` and without ./pre-inst-env?



Re: geiser-edit-symbol-at-point

2022-11-14 Thread jgart
On Sat, 12 Nov 2022 10:48:54 -0500 Jake Shilling  
wrote:
> 
> If I'm reading this right, I belive that this macro is looking for the
> 'add-after symbol--as a symbol--and not looking for any value referenced
> by it.

Does geiser work on the macroexpanded forms in %modify-phases that are
not macros?



All 75 channel news entries are valid

2022-11-14 Thread jgart
Hi,

has anyone ever gotten this backtrace before? I was trying to update
`emacs-crdt`:

 guix-shell  guix build -L . emacs-crdt
guix build: warning: failed to load '(build-aux build-self)':
no code for module (build-aux build-self)
./build-aux/build-self.scm:19:0: warning: module name (build-self) does not 
match file name 'build-aux/build-self.scm'
hint: File `./build-aux/build-self.scm' should probably start with:

 (define-module (build-aux build-self))

guix build: All 75 channel news entries are valid.
guix build: warning: failed to load '(build-aux check-channel-news)':
no code for module (build-aux check-channel-news)
hint: File `./build-aux/check-channel-news.scm' should probably start with:

 (define-module (build-aux check-channel-news))

checking final inputs for 'x86_64-linux'...
guix/packages.scm:1616:38: warning: resolving './gnu/packages/ld-wrapper.in' 
relative to current directory
guix/packages.scm:1616:38: warning: resolving './gnu/packages/ld-wrapper.in' 
relative to current directory
guix/packages.scm:1616:38: warning: resolving './gnu/packages/ld-wrapper.in' 
relative to current directory
checking final inputs for 'aarch64-linux'...
guix/packages.scm:1616:38: warning: resolving './gnu/packages/ld-wrapper.in' 
relative to current directory
guix/packages.scm:1616:38: warning: resolving './gnu/packages/ld-wrapper.in' 
relative to current directory
guix/packages.scm:1616:38: warning: resolving './gnu/packages/ld-wrapper.in' 
relative to current directory
checking final inputs for 'powerpc64le-linux'...
guix/packages.scm:1616:38: warning: resolving './gnu/packages/ld-wrapper.in' 
relative to current directory
guix/packages.scm:1616:38: warning: resolving './gnu/packages/ld-wrapper.in' 
relative to current directory
guix/packages.scm:1616:38: warning: resolving './gnu/packages/ld-wrapper.in' 
relative to current directory
checking final inputs for 'i686-linux'...
guix/packages.scm:1616:38: warning: resolving './gnu/packages/ld-wrapper.in' 
relative to current directory
guix/packages.scm:1616:38: warning: resolving './gnu/packages/ld-wrapper.in' 
relative to current directory
guix/packages.scm:1616:38: warning: resolving './gnu/packages/ld-wrapper.in' 
relative to current directory
checking final inputs for 'armhf-linux'...
guix/packages.scm:1616:38: warning: resolving './gnu/packages/ld-wrapper.in' 
relative to current directory
guix/packages.scm:1616:38: warning: resolving './gnu/packages/ld-wrapper.in' 
relative to current directory
guix/packages.scm:1616:38: warning: resolving './gnu/packages/ld-wrapper.in' 
relative to current directory
checking final inputs for 'i586-gnu'...
guix/packages.scm:1616:38: warning: resolving './gnu/packages/ld-wrapper.in' 
relative to current directory
guix/packages.scm:1616:38: warning: resolving './gnu/packages/ld-wrapper.in' 
relative to current directory
guix/packages.scm:1616:38: warning: resolving './gnu/packages/ld-wrapper.in' 
relative to current directory
guix build: warning: failed to load '(build-aux 
check-final-inputs-self-contained)':
no code for module (build-aux check-final-inputs-self-contained)
hint: File `./build-aux/check-final-inputs-self-contained.scm' should probably 
start with:

 (define-module (build-aux check-final-inputs-self-contained))

guix build: warning: failed to load '(build-aux compile-all)':
Backtrace:
In guix/store.scm:
   1300:8 19 (call-with-build-handler # …)
In guix/scripts/build.scm:
587:2 18 (_)
In srfi/srfi-1.scm:
   673:15 17 (append-map _ _ . _)
   586:17 16 (map1 ((argument . "emacs-crdt") (build-mode . 0) # # …))
In guix/scripts/build.scm:
   607:31 15 (_ _)
In gnu/packages.scm:
479:2 14 (%find-package "emacs-crdt" "emacs-crdt" #f)
364:6 13 (find-best-packages-by-name _ _)
   294:56 12 (_ "emacs-crdt" _)
In unknown file:
  11 (force #)
In gnu/packages.scm:
   241:33 10 (fold-packages # …)
In guix/discovery.scm:
   159:11  9 (all-modules _ #:warn _)
In srfi/srfi-1.scm:
   460:18  8 (fold # …)
In guix/discovery.scm:
   146:31  7 (_ _ ())
116:5  6 (scheme-modules _ _ #:warn _)
In srfi/srfi-1.scm:
   691:23  5 (filter-map # . #)
In guix/discovery.scm:
   124:24  4 (_ . _)
In guix/ui.scm:
440:5  3 (warn-about-load-error "./build-aux/compile-all.scm" (…) …)
In unknown file:
   2 (display-error #f # "match" "…" …)
In ice-9/boot-9.scm:
  1685:16  1 (raise-exception _ #:continuable? _)
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Wrong number of arguments to #




Re: geiser-edit-symbol-at-point

2022-11-14 Thread jgart
On Mon, 14 Nov 2022 10:16:33 -0500 Jake Shilling  
wrote:
> On 2022-11-14 09:01, jg...@dismail.de wrote:

> If I evaluate this file ...

Cool, what did you do to evaluate the file exactly? Where you on Guix System
when this worked for you?




Re: fatal empty ident name (for <>) not allowed

2022-11-12 Thread jgart
On Sat, 12 Nov 2022 15:05:27 +0100 Ricardo Wurmus  wrote:
> You’re working with an incomplete attachment.

Story of my life

>wget -O- https://issues.guix.gnu.org/issue/58898/patch-set/ | git am

Thanks!



Re: fatal empty ident name (for <>) not allowed

2022-11-12 Thread jgart
On Sat, 12 Nov 2022 14:19:44 +0100 Ricardo Wurmus  wrote:
> How do you apply the patches?

How you showed me ;()

wget -O- https://issues.guix.gnu.org/issue/58898/attachment/9/ | git am





Re: geiser-edit-symbol-at-point

2022-11-11 Thread jgart
On Fri, 11 Nov 2022 18:07:49 -0600 jgart  wrote:
> I feel like I've made some progress...

I can also geiser-edit-symbol-at-point the following snippet

(format #t
^^^

It jumps me to the source location here:

/gnu/store/qlmpcy5zi84m6dikq3fnx5dz38qpczlc-guile-3.0.8/share/guile/3.0/ice-9/format.scm

But this doesn't work for geiser-edit-symbol-at-point because it is guix API 
code:

(add-after 'build 'install-xsession
^

It asks me to visit a tags table which is probably not what I want.



Re: geiser-edit-symbol-at-point

2022-11-11 Thread jgart
On Fri, 11 Nov 2022 16:15:18 -0600 jgart  wrote:
> On Fri, 11 Nov 2022 17:06:07 -0500 Jake Shilling  
> wrote:
> I can call geiser-edit-symbol-at-point but it doesn't do anything and
> the *Messages* buffer doesn't say anything helpful...

I was able to geiser-edit-symbol-at-point on a lambda* like the following

(lambda* (#:key inputs outputs #:allow-other-keys)
 ^

It opened the elf binary for it in emacs and I was able to pop-tag-mark back to 
where I was!

I feel like I've made some progress...




Re: geiser-edit-symbol-at-point

2022-11-11 Thread jgart
On Fri, 11 Nov 2022 17:06:07 -0500 Jake Shilling  
wrote:
> I'm sure someone who actually knows what they're doing could help more
> than me, but my thought would be to start by debugging guile outside of
> Geiser. I would try to spin up a repl and see if I could import one of
> the modules from ~/guix and check out what the %load-path ends up being.

I have no problem loading guile (guix installed) third party modules or
guix modules (via `guix repl`).

Doing anything in geiser seems to not work except for running `M-x geiser` to 
launch a repl.

I can call geiser-edit-symbol-at-point but it doesn't do anything and
the *Messages* buffer doesn't say anything helpful...



Re: geiser-edit-symbol-at-point

2022-11-11 Thread jgart
On Fri, 11 Nov 2022 15:42:13 -0600 jgart  wrote:
> On Fri, 11 Nov 2022 15:43:26 -0500 Jake Shilling  
> wrote:
> > On 2022-11-11 12:40, jg...@dismail.de wrote:

If I could just get geiser-edit-symbol-at-point to work I'll be the
happiest Guixer in the world. I could care less about the rest of Geiser
right now.




Re: geiser-edit-symbol-at-point

2022-11-11 Thread jgart
On Fri, 11 Nov 2022 15:43:26 -0500 Jake Shilling  
wrote:
> On 2022-11-11 12:40, jg...@dismail.de wrote:
> 
> > On Fri, 11 Nov 2022 09:31:40 -0500 Jake Shilling  
> > wrote:

> That is definitly enouhg to make sure ~/guix is processed by guile and
> then Gieser. 

Hi Jake, I'll get back to your points above but I wanted to clarify that
it is not enough to just set the src repo checkout for Guix on a foreign
distro. Atleast, not on void linux.

I'm not able to geiser-edit-symbol-at-point at all successfully after setting
the basics as described in the Guix manual and as I described prior.

Maybe it only works out of the box as described in the manual if you
happen to be on Guix System but not on Void Linux?

Does Geiser work fine after being configured as described in
the guix manual on Ubuntu or Debian?

What can I do to debug what the issue is on my system (void linux)
with geiser?

I should check to see if some guix specific environment variables are
missing or improperly set in my bashrc or bash_profile?

I'm using bash on void linux.

all best,

jgart




Re: geiser-edit-symbol-at-point

2022-11-11 Thread jgart
On Fri, 11 Nov 2022 09:31:40 -0500 Jake Shilling  
wrote:
> my configuration files, I have a toplevel script which updates the
> %load-path:
> 
> ```
> (when (current-filename)
>   (add-to-load-path
>(dirname (current-filename
> ```
> 
> So when I load that file into the repl with C-c C-l all the subsequent
> use-modules work.

Hi Jake, thanks for the reply,

You have to do all that before geiser will pick up the source files in my guix 
checkout?

Just doing the following as recommended in the guix manual is not enough?

> (with-eval-after-load 'geiser-guile
>   (add-to-list 'geiser-guile-load-path "~/guix"))

My source checkout of guix is in `~/guix`.




fatal empty ident name (for <>) not allowed

2022-11-11 Thread jgart
Does anyone happen to know what this error is about?

Applying: * gnu/packages/lisp.scm (carp): New variable.
fatal: empty ident name (for <>) not allowed

It happens when I try to apply v8 of this patch:

https://issues.guix.gnu.org/58898#9



Re: geiser-edit-symbol-at-point

2022-11-10 Thread jgart
On Thu, 10 Nov 2022 19:35:27 -0600 jgart  wrote:

> (with-eval-after-load 'geiser-guile
>   (add-to-list 'geiser-guile-load-path "~/guix"))

Also, why does geiser want you to set up the load path manually for every 
project?

I'd like for the experience to be more like a language server/eglot where I
just enter the guile project and xref just works if the mode is turned on.

Why is this not possible with geiser currently?




Re: geiser-edit-symbol-at-point

2022-11-10 Thread jgart
On Thu, 10 Nov 2022 19:35:27 -0600 jgart  wrote:

When I run that geiser-edit-symbol-at-point I get the following message:

geiser-completion--symbol-begin: Symbol’s function definition is void: nil [11 
times]




geiser-edit-symbol-at-point

2022-11-10 Thread jgart
Hi,

Does geiser-edit-symbol-at-point work for anyone?

I've never been able to get it to work with the guix codebase...

relevant config I have in my ~/.emacs:

```
(with-eval-after-load 'geiser-guile
  (add-to-list 'geiser-guile-load-path "~/guix"))
```




guix refuses to build a package even after I...

2022-11-10 Thread jgart
Hi,

Guix refuses to build a package even after I changed the first digit of
the hash and changed the version field.

Is there any way that I can force guix to pick up the file change?

diff:

--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -1333,7 +1333,7 @@ (define-public postgresql postgresql-14)
 (define-public timescaledb
   (package
 (name "timescaledb")
-(version "2.7.0")
+(version "2.8.1")
 (source (origin
   (method git-fetch)
   (uri (git-reference
@@ -1342,7 +1342,7 @@ (define-public timescaledb
   (file-name (git-file-name name version))
   (sha256
(base32
-"18wszj8ia5rs4y4zkyfb0f5z4y1g7ac3jym748nbkbszhxmq7nc7"))
+"08wszj8ia5rs4y4zkyfb0f5z4y1g7ac3jym748nbkbszhxmq7nc7"))
   (patches (search-patches "timescaledb-flaky-test.patch"))
   (modules '((guix build utils)))
   (snippet

cli:

λ guix shell -D guix
hint: Consider passing the `--check' option once to make sure your shell does 
not clobber environment variables.

 guix-shell  ./pre-inst-env guix build timescaledb
The following graft will be made:
   /gnu/store/d0mgk7af1y7hl62jqpykm751iyzy6121-timescaledb-2.7.0.drv
applying 2 grafts for timescaledb-2.7.0 ...
grafting '/gnu/store/78ildbrzjpfkmh28r0z036zpgfnlci32-timescaledb-2.7.0' -> 
'/gnu/store/jf990i7zcvbfb49rwbm4vz1wsa436zdx-timescaledb-2.7.0'...
successfully built 
/gnu/store/d0mgk7af1y7hl62jqpykm751iyzy6121-timescaledb-2.7.0.drv
successfully built 
/gnu/store/d0mgk7af1y7hl62jqpykm751iyzy6121-timescaledb-2.7.0.drv
/gnu/store/jf990i7zcvbfb49rwbm4vz1wsa436zdx-timescaledb-2.7.0

It's still trying to build 2.7.0 even though I changed the file in the two 
places seen above.

How comes?

jgart



Re: Regex Rules

2022-11-10 Thread jgart
On Thu, 10 Nov 2022 07:37:00 +0100 Julien Lepiller  wrote:
> \\ is for inputing a single \ (it needs to be etcaped in guile strings). 
> Then, the rest is a Guile regexp, wgicg you can liarn about at 
> https://www.gnu.org/software/guile/manual/html_node/Regular-Expressions.html.
> 
> The manual says it's POSIX regexp, whatever that means :)

I'm familiar with posix regex from using vis:

https://github.com/martanne/vis

But, iirc vis regex are different from Guile's

I might be wrong on that.

I'll have to check the parity between the two

thanks,

jgart



Regex Rules

2022-11-09 Thread jgart
Hi,

Where can I find all the regex rules for this style of regex?

"\\$\\{PG_SHAREDIR\\}/extension"

That's a snippet I took at random from guix/

all best,

jgart




Re: guix package for void

2022-11-05 Thread jgart
On Sat, 05 Nov 2022 13:43:16 -0500 jgart  wrote:
> Feel free to answer on that issue.

Sorry, answer here instead:

https://github.com/void-linux/void-packages/issues/11666



guix package for void

2022-11-05 Thread jgart


Would anyone be interested in investigating this with me or giving some code 
review?

https://github.com/void-linux/void-packages/pull/22359

https://github.com/void-linux/void-packages/pull/22359/files#diff-e3b47a7b1bf851887a5ba65f5641a2f161ea1a8edbf957d3338fc830b866e397

Feel free to answer on that issue.



Re: make clean-go breaks my build environment

2022-11-05 Thread jgart
On Sat, 05 Nov 2022 15:37:45 + "("  wrote:
> Ahh. I thought you were talking about using ``make -j$(nproc)''. Use that and 
> it should get
> a LOT faster.

ah that was the missing step I was talking about.

communication over email can be hard sometimes

Should we document that running make is required after running make clean-go?

I don't think a new user will deduce that especially if they're new to guile
and don't know what go is or how it relate to whatever running make is doing...

They might make the same error I just made.



Re: make clean-go breaks my build environment

2022-11-05 Thread jgart
On Sat, 05 Nov 2022 15:17:47 + "("  wrote:
> On Sat Nov 5, 2022 at 3:16 PM GMT, jgart wrote:
> > I'm just wondering if I'm missing a step after running `make clean-go`
> > in order to then get the speed up again.
> 
> I don't think you are.
> 
> -- (

So, just build a few times and it should speed up because the go files have 
been regenerated?

For example, after running `make clean-go` building nnn which is a small
file manager takes the following:

 time ./pre-inst-env guix build nnn
WARNING: Use of `load' in declarative module (guix ui).  Add #:declarative? #f 
to your define-module invocation.
WARNING: (guix build python-build-system): imported module (guix build utils) 
overrides core binding `delete'

/gnu/store/byap6zn0g5gbv43wg67cdkvlnl24hhlg-nnn-4.6

real3m43.164s
user5m8.290s
sys 0m0.734s

If I run that same command I expect it to be faster because I assume
that the go files are already there but lo and behold:

 time ./pre-inst-env guix build nnn
WARNING: Use of `load' in declarative module (guix ui).  Add #:declarative? #f 
to your define-module invocation.
WARNING: (guix build python-build-system): imported module (guix build utils) 
overrides core binding `delete'

/gnu/store/byap6zn0g5gbv43wg67cdkvlnl24hhlg-nnn-4.6

real3m43.498s
user5m6.128s
sys 0m0.683s

And here I try it one more time:

time ./pre-inst-env guix build nnn
WARNING: Use of `load' in declarative module (guix ui).  Add #:declarative? #f 
to your define-module invocation.
WARNING: (guix build python-build-system): imported module (guix build utils) 
overrides core binding `delete'

/gnu/store/byap6zn0g5gbv43wg67cdkvlnl24hhlg-nnn-4.6

real3m36.902s
user5m1.588s
sys 0m0.671s

fun times ;()

wdyt



Re: make clean-go breaks my build environment

2022-11-05 Thread jgart
On Fri, 04 Nov 2022 16:16:39 + "("  wrote:
> Sure; make clean-go deletes all the compiled .go files, so it makes sense that
> it'd take a while to finish after that.

How about the time after the first compile after cleaning all the go files?

I'm just wondering if I'm missing a step after running `make clean-go`
in order to then get the speed up again.

Do I just need to rebuild a few times so that it then regenerates the go files?

all best,

jgart



I tried to upgrade vis but...

2022-11-03 Thread jgart
I tried to upgrade vis but visidata was also upgraded... how comes?

$ guix upgrade vis
guix upgrade: warning: package 'emacs-vis' no longer exists
The following packages will be upgraded:
   vis  0.7 → 0.8
   visidata (dependencies or package changed)




Re: which package gets built first?

2022-11-03 Thread jgart
On Fri, 04 Nov 2022 00:34:32 -0500 jgart  wrote:
> What determines which package gets built first in the following invocation?
> 
> `guix build emacs-zig-mode zig`

The reason I ask is because zig got built first but I'm not sure why...



which package gets built first?

2022-11-03 Thread jgart
What determines which package gets built first in the following invocation?

`guix build emacs-zig-mode zig`



Re: make clean-go breaks my build environment

2022-11-03 Thread jgart
On Wed, 02 Nov 2022 02:48:03 -0500 jgart  wrote:
> On Wed, 02 Nov 2022 08:20:09 +0100 Ricardo Wurmus  wrote:
> > 
> > jgart  writes:
> > 
> > > after running `make clean-go` the build gets consistently stuck on
> > > this message:
> > >
> > > WARNING: Use of `load' in declarative module (guix ui).  Add 
> > > #:declarative? #f to your define-module invocation.
> > > WARNING: (guix build python-build-system): imported module (guix build 
> > > utils) overrides core binding `delete'
> > 
> > These are warnings, not errors.  What do you mean by “gets […] stuck”?
> 
> I mean that instead of getting a quick build now that the guile object
> files are gone it just gets stuck indefinitely at that warning.
> 
Interesting bug:

It does build eventually but after taking a long time and emitting this warning:

WARNING: Use of `load' in declarative module (guix ui).  Add #:declarative? #f 
to your define-module invocation.
WARNING: (guix build python-build-system): imported module (guix build utils) 
overrides core binding `delete'

I've only observed this happening after running `make clean-go`.

The only way to fix it from practical experience is to run the whole
bootstrap configure make process all over again.

Ricardo,

After running `make clean-go` do you observe the same behaviour on your
machine? Are you on Guix System or a foreign distro?

all best,

jgart



Re: make clean-go breaks my build environment

2022-11-02 Thread jgart
On Wed, 02 Nov 2022 08:20:09 +0100 Ricardo Wurmus  wrote:
> 
> jgart  writes:
> 
> > after running `make clean-go` the build gets consistently stuck on
> > this message:
> >
> > WARNING: Use of `load' in declarative module (guix ui).  Add #:declarative? 
> > #f to your define-module invocation.
> > WARNING: (guix build python-build-system): imported module (guix build 
> > utils) overrides core binding `delete'
> 
> These are warnings, not errors.  What do you mean by “gets […] stuck”?

I mean that instead of getting a quick build now that the guile object
files are gone it just gets stuck indefinitely at that warning.




make clean-go breaks my build environment

2022-11-01 Thread jgart
hi,

after running `make clean-go` the build gets consistently stuck on
this message:

WARNING: Use of `load' in declarative module (guix ui).  Add #:declarative? #f 
to your define-module invocation.
WARNING: (guix build python-build-system): imported module (guix build utils) 
overrides core binding `delete'

am i missing a step?

all best,

jgart



Re: committer.scm

2022-11-01 Thread jgart
On Tue, 01 Nov 2022 07:57:28 +0100 Julien Lepiller  wrote:
> Try calling it with pre-inst-env.

Ohhh, yes that was it. I stopped calling it with pre-inst-env for some reason 
;()

THNX

Now I just need to see how I am going to sort these 150+ crates in an automated 
fashion...



committer.scm

2022-10-31 Thread jgart
Hi,

Does anyone know how to use the committer.scm script or how it is intended to 
be used?

This is what my unstaged area looks like:

$ guix-shell  git status
On branch master
Your branch is ahead of 'origin/master' by 4 commits.
  (use "git push" to publish your local commits)

Changes not staged for commit:
  (use "git add ..." to update what will be committed)
  (use "git restore ..." to discard changes in working directory)
modified:   gnu/packages/crates-io.scm
modified:   gnu/packages/rust-apps.scm

no changes added to commit (use "git add" and/or "git commit -a")

This is what it looks like when I call the script in a guix shell:

$ ./etc/committer.scm
committer.scm committer.scm.in
 guix-shell  etc/committer.scm the-way
Backtrace:
In ice-9/eval.scm:
   721:20 19 (primitive-eval (use-modules ((sxml xpath) #:prefix …) …))
In ice-9/psyntax.scm:
  1218:36 18 (expand-top-sequence (#) …)
  1210:19 17 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
   259:10 16 (parse _ (("placeholder" placeholder)) (()) _ c (eval) …)
In ice-9/boot-9.scm:
  3935:20 15 (process-use-modules _)
   222:29 14 (map1 (((sxml xpath) #:prefix xpath:) ((srfi srfi-1)) …))
   222:29 13 (map1 (((srfi srfi-1)) ((srfi srfi-2)) ((srfi #)) (#) …))
   222:29 12 (map1 (((srfi srfi-2)) ((srfi srfi-9)) ((srfi #)) (#) …))
   222:29 11 (map1 (((srfi srfi-9)) ((srfi srfi-11)) ((srfi #)) (#) …))
   222:29 10 (map1 (((srfi srfi-11)) ((srfi srfi-26)) ((ice-9 #)) # …))
   222:29  9 (map1 (((srfi srfi-26)) ((ice-9 format)) ((ice-9 #)) # …))
   222:29  8 (map1 (((ice-9 format)) ((ice-9 popen)) ((ice-9 #)) # …))
   222:29  7 (map1 (((ice-9 popen)) ((ice-9 match)) ((ice-9 #)) (#) …))
   222:29  6 (map1 (((ice-9 match)) ((ice-9 rdelim)) ((ice-9 #)) # #))
   222:29  5 (map1 (((ice-9 rdelim)) ((ice-9 regex)) ((ice-9 #)) (#)))
   222:29  4 (map1 (((ice-9 regex)) ((ice-9 textual-ports)) ((# #
   222:29  3 (map1 (((ice-9 textual-ports)) ((guix gexp
   222:17  2 (map1 (((guix gexp
  3936:31  1 (_ ((guix gexp)))
   3330:6  0 (resolve-interface (guix gexp) #:select _ #:hide _ # _ # …)

ice-9/boot-9.scm:3330:6: In procedure resolve-interface:
no code for module (guix gexp)




New Error For Stackage And Hackage Importers

2022-10-30 Thread jgart
$ guix import stackage bower-json -r
Syntax error: unexpected token : (ghc-options (-Wall 
-fno-warn-missing-signatures)) (at line 58, column 2)
Syntax error: unexpected end of input
 $ guix import hackage bower-json -r
Syntax error: unexpected token : (ghc-options (-Wall 
-fno-warn-missing-signatures)) (at line 58, column 2)
Syntax error: unexpected end of input

WDYT



guix import no like lifetime fishy

2022-10-28 Thread jgart


$ guix import stackage carp -r
Backtrace:
  12 (primitive-load "/home/jgart/.config/guix/current/bin/g…")
In guix/ui.scm:
   2263:7 11 (run-guix . _)
  2226:10 10 (run-guix-command _ . _)
In guix/scripts/import.scm:
92:11  9 (guix-import . _)
In ice-9/boot-9.scm:
  1752:10  8 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/import/stackage.scm:
   109:26  7 (_)
In guix/import/utils.scm:
   594:27  6 (recursive-import _ #:repo->guix-package _ #:guix-name _ …)
   584:33  5 (lookup-node "carp" #f)
In guix/memoization.scm:
 98:0  4 (mproc "carp" #:include-test-dependencies? #t # "")
In unknown file:
   3 (_ # …)
In guix/import/stackage.scm:
   117:21  2 (_ "carp" #:include-test-dependencies? _ #:lts-version _ …)
 93:4  1 (lts-package-version _ _)
In ice-9/boot-9.scm:
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure struct-vtable: Wrong type argument in position 1 (expecting 
struct): #f

WDYT



guix git authenticate concrete example of syntax

2022-10-25 Thread jgart
I think this general syntax could use a concrete syntax example:

https://guix.gnu.org/manual/en/html_node/Invoking-guix-git-authenticate.html













wdyt



Re: Don't Unquote Me

2022-10-14 Thread jgart
On Fri, 14 Oct 2022 07:59:14 +0100 "("  wrote:
> On Fri Oct 14, 2022 at 5:03 AM BST, jgart wrote:
> > Are `unqote`, `quote` and `unquote-splice` functions after they get
> > desugared from their reader macro representation?
> 
> Nope; they're special built-in forms like ``lambda'' and ``define''.

So, they are ordinary functions defined in guile?

Or by built-ins you mean that they are implemented in C?

I'll read through the guile source code a bit later ;()



Don't Unquote Me

2022-10-13 Thread jgart
Are `unqote`, `quote` and `unquote-splice` functions after they get
desugared from their reader macro representation?

I just know how they work but never thought to think about this before...

paren hugs,

jgart



Re: Erlang Development with Guix

2022-10-11 Thread jgart
On Thu, 30 Jun 2022 11:00:03 +0200 Hartmut Goebel 
 wrote:
> The rebar-build-system I created was published just a few weeks ago. 
> Anyhow, I'm not a Erlang/OTP user, so this build-system might still need 
> improvement. Any help on this is welcome.

Hi Hartmut,

Good News!

I found out what environment variable we need to set in order for Guix to find 
Erlang libraries:

It's ERL_LIBS that needs to be set in order for Erlang to find
installed libraries in /guix/store/.../lib/erlang/lib/

Here's an example of what Nix does:

https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/beam-modules/hex/default.nix#L21

I tested this with a guix shell and erlang-jsx:

https://issues.guix.gnu.org/58458

All I did was enter an erlang repl (erl) and run the following code:

 λ guix shell -D guix --pure
hint: Consider passing the `--check' option once to make sure your shell does 
not clobber environment variables.

 guix-shell  ./pre-inst-env guix shell erlang erlang-jsx --search-paths --pure
;;; note: source file 
/home/jgart/7a41616f-b6b7-4643-898b-5771ddf02d32-guix/gnu/packages/python.scm
;;;   newer than compiled 
/home/jgart/7a41616f-b6b7-4643-898b-5771ddf02d32-guix/gnu/packages/python.go
;;; note: source file 
/home/jgart/7a41616f-b6b7-4643-898b-5771ddf02d32-guix/gnu/packages/python.scm
;;;   newer than compiled 
/home/jgart/.guix-profile/lib/guile/3.0/site-ccache/gnu/packages/python.go
;;; note: source file 
/home/jgart/7a41616f-b6b7-4643-898b-5771ddf02d32-guix/gnu/packages/erlang.scm
;;;   newer than compiled 
/home/jgart/7a41616f-b6b7-4643-898b-5771ddf02d32-guix/gnu/packages/erlang.go
;;; note: source file 
/home/jgart/7a41616f-b6b7-4643-898b-5771ddf02d32-guix/gnu/packages/erlang.scm
;;;   newer than compiled 
/home/jgart/.guix-profile/lib/guile/3.0/site-ccache/gnu/packages/erlang.go
;;; note: source file 
/home/jgart/7a41616f-b6b7-4643-898b-5771ddf02d32-guix/guix/build-system/rebar.scm
;;;   newer than compiled 
/home/jgart/7a41616f-b6b7-4643-898b-5771ddf02d32-guix/guix/build-system/rebar.go
;;; note: source file 
/home/jgart/7a41616f-b6b7-4643-898b-5771ddf02d32-guix/guix/build-system/rebar.scm
;;;   newer than compiled 
/home/jgart/.guix-profile/lib/guile/3.0/site-ccache/guix/build-system/rebar.go
;;; note: source file 
/home/jgart/7a41616f-b6b7-4643-898b-5771ddf02d32-guix/gnu/packages/entr.scm
;;;   newer than compiled 
/home/jgart/7a41616f-b6b7-4643-898b-5771ddf02d32-guix/gnu/packages/entr.go
;;; note: source file 
/home/jgart/7a41616f-b6b7-4643-898b-5771ddf02d32-guix/gnu/packages/entr.scm
;;;   newer than compiled 
/home/jgart/.guix-profile/lib/guile/3.0/site-ccache/gnu/packages/entr.go

;;; Ignore this. This was printed courtesy of the pk macro ;()
;;; (#)
export PATH="/gnu/store/95i56pzs3g1hysaj32c8jzchw5n30fhz-profile/bin"
export XDG_DATA_DIRS="/gnu/store/95i56pzs3g1hysaj32c8jzchw5n30fhz-profile/share"
 guix-shell  ls /gnu/store/95i56pzs3g1hysaj32c8jzchw5n30fhz-profile/bin
ct_runerl  fc-cache fc-list fc-query freetype-config  
png-fix-itxt  to_erl
dialyzer  erlc fc-cat   fc-matchfc-scan  libpng-config
pngfixtyper
epmd  escript  fc-conflist  fc-pattern  fc-validate  libpng16-config  
run_erl   xmlwf
 guix-shell  erl
bash: erl: command not found
(reverse-i-search)`s': ./pre-inst-env guix shell erlang erlang-jsx 
--search-path^C--pure
 guix-shell   export 
ERL_LIBS=/gnu/store/95i56pzs3g1hysaj32c8jzchw5n30fhz-profile/lib/erlang/lib
 guix-shell  /gnu/store/95i56pzs3g1hysaj32c8jzchw5n30fhz-profile/bin/erl
Erlang/OTP 25 [erts-13.0.4] [source] [64-bit] [smp:4:4] [ds:4:4:10] 
[async-threads:1] [jit:ns]

Eshell V13.0.4  (abort with ^G)
1> jsx:decode(<<"{\"library\": \"jsx\", \"awesome\": true}">>, []).
#{<<"awesome">> => true,<<"library">> => <<"jsx">>}


As you can see above we don't need to import anything into the repl
because we just namespace with installed library in order to use it. I
think this may be what erlangers normally do at the repl instead of
importing.

See the erlang-jsx README:

https://github.com/talentdeficit/jsx#to-convert-a-utf8-binary-containing-a-json-string-into-an-erlang-term

I'll try to find the time to add setting this environment variable to
the rebar-build-system, otherwise if you'd like to proceed with adding
it that is also fine by me :)

all best,

jgart



When do you re-export?

2022-10-11 Thread jgart
Hi,

When should I re-export something in a module?

docs say the following:

Add all variables (which must be symbols or pairs of symbols) to the
list of re-exported bindings of the current module. Pairs of symbols
are handled as in export. Re-exported bindings must be imported by the
current module from some other module.

The docs don't explain why you would want to even do a re-export in the first 
place...

Could someone provide some examples as to why I would want to use this? It
would be much appreciated!

--
jgart



Re: How can I step through this code?

2022-10-10 Thread jgart
On Mon, 10 Oct 2022 18:04:57 +0200 Ludovic Courtès  wrote:
> What you can do though, 

Thanks Ludo! Much appreciated!! I hadn't used ,optimize metacommand yet. I've 
used
pk in Guile and Racket but not regularly tbh. Maybe I should start.

Ludo, how would you step through this code?

(define (list-index l k)
  (let loop ((n 0)
 (l l))
(and (not (null? l))
 (if (eq? (car l) k)
 n
 (loop (+ n 1) (cdr l))

(list-index '(1 2 3 4 5 6 7 8 9) 2)

What is your approach with Guile?

all best,

jgart




Re: How can I step through this code?

2022-10-09 Thread jgart
On Sun, 09 Oct 2022 00:14:23 + jbra...@dismail.de wrote:
> A debugger stepping through the code would have been awesome!

Yup it would have! You're right!

> Right now I am super in love with Guix.  

Me too, it's more like a passionate love hate relationship for me tbh. I
need couples GNUtherapy.

> My main squeeze is working
> on our existing opensmtpd-service and letting users configure it with
> proper scheme records.  I don't know if I want to play with common lisp.

Ya, it's a rabbit hole although I recommend atleast once, taking a stack
stroll in the caddy just so you know what's up ;()



Re: How can I step through this code?

2022-10-08 Thread jgart
On Sat, 08 Oct 2022 15:03:54 + jbra...@dismail.de wrote:
> That's smart! 

Did you try it? I've been trying to understand how some Guile code works
by just throwing it in the Racket debugger. It doesn't always work but
when it does it's like driving a fancy cadillac through the stack.

It's too bad that Guile's debugger sucks compared to Racket's debugger. Maybe
someday someone will implement something amazing for that.

RE The Common Lisp debugger: It's really great but it might be a rabbit hole.

I recommend using sly or slime with sbcl if you want to go down that.






Re: How can I step through this code?

2022-10-07 Thread jgart
On Fri, 07 Oct 2022 21:52:40 + jbra...@dismail.de wrote:
> October 7, 2022 3:22 PM, "jgart"  wrote:
> 
> > On Fri, 07 Oct 2022 18:45:36 + jbra...@dismail.de wrote:
> > 
> >> I wish guile had a nice debugger like elisp. :)
> > 
> > I wish guile had a nice debugger like racket or common lisp. :)
> 
> I haven't actually tried those debuggers...

Just paste some guile code into drracket and press debug to start stepping 
through the Guile code.

This guile code should work:

(define (list-index l k)
  (let loop ((n 0)
 (l l))
(and (not (null? l))
 (if (eq? (car l) k)
 n
 (loop (+ n 1) (cdr l))

(list-index '(1 2 3 4 5 6 7 8 9) 2)

Just make sure you put the following at the top of the file:

#lang racket

Of course not all guile code would work because it's Guile and Racket
but some subsets of Guile can be used from the drracket debugger.

;()



Re: How can I step through this code?

2022-10-07 Thread jgart
On Fri, 07 Oct 2022 18:45:36 + jbra...@dismail.de wrote:
> I wish guile had a nice debugger like elisp.  :)

I wish guile had a nice debugger like racket or common lisp.  :)



Re: the perfect setup with geiser

2022-10-06 Thread jgart
On Thu, 06 Oct 2022 06:44:25 + Philip Kaludercic  wrote:
> jgart  writes:
> 
> > Hi,
> >
> > this doesn't work for me from the manual:
> >
> > ;; Assuming the Guix checkout is in ~/src/guix.
> > (with-eval-after-load 'geiser-guile
> >   (add-to-list 'geiser-guile-load-path "~/src/guix"))
>  ^
> 
> Is the Guix repository checked out at this position?

Hi,

I have it set to a another location and it's reflected in the above
correctly. That's not the issue, trust me.



the perfect setup with geiser

2022-10-05 Thread jgart


Hi,

this doesn't work for me from the manual:

;; Assuming the Guix checkout is in ~/src/guix.
(with-eval-after-load 'geiser-guile
  (add-to-list 'geiser-guile-load-path "~/src/guix"))

After changing the patch to where my local guix checkout is at, I'm not
able to load guix code in an emacs buffer.


I have all the necessary packages installed via Guix

WDYT



help-guix@gnu.org

2022-10-05 Thread jgart
Hi,

what this the convention for when a function is called

 or  or  or  or 
 for example.

What does the & prefix mean?



How can I step through this code?

2022-10-05 Thread jgart
Hi

How can I step through this code?

(define-syntax do
  (syntax-rules ()
((do ((var init step ...) ...)
 (test expr ...)
 command ...)
 (letrec
   ((loop
 (lambda (var ...)
   (if test
   (begin
 (if #f #f)
 expr ...)
   (begin
 command
 ...
 (loop (do "step" var step ...)
   ...))
   (loop init ...)))
((do "step" x)
 x)
((do "step" x y)
 y)))




debugging %build-inputs

2022-10-05 Thread jgart
Hi,

How can I debug what %build-inputs is in the context of the package being built?

(arguments
 `(#:configure-flags
   (list (string-append "--with-tcl="
(assoc-ref %build-inputs "tcl")
"/lib")
 (string-append "--with-tk="
(assoc-ref %build-inputs "tk")
"/lib"


The above snippet is from gtkwave (e.g. guix edit gtkwave).

What I would like to do is drop into a debugger in the environment where I can 
print %build-inputs.

If I can't do it that way what is the Guiler way to achieve what I'm trying to 
do?

Any advice and enlightment would be much appreciated.

all best,

jgart



Re: Trivia question: What does the "G" in G-expressions stand for?

2022-10-04 Thread jgart
On Tue, 04 Oct 2022 19:37:49 +0100 "("  wrote:
> On Mon Oct 3, 2022 at 10:11 PM BST, Ludovic Courtès wrote:
> > Ah well, “G” might stand for “golden” or “great” then.  :-)
> >
> > Ludo’.
> 
> "Glorious expressions" :)

Amen.



lock files

2022-10-02 Thread jgart
Does Guix have a concept of lock files?

Or, why doesn't Guix need lock files?





  1   2   >