Re: Mandb does not include guix package man pages

2024-03-13 Thread Greg Hogan
On Wed, Mar 13, 2024 at 1:49 AM Pan Xie  wrote:
>
> Hello
>
> I find this issue on both GuixSD and guix package manager on ArchLinux.
> The problem is `man -k' can not find manpages installed by guix. I
> believe the issue is caused by `mandb' does not include guix packages'
> man pages when generating its index database.

Hi Pan,

On a foreign distro I install the guix package 'man-db', add the
following to my .bashrc, and am able to access both system and guix
man pages.

export MANPATH=$MANPATH${MANPATH:+:}/usr/share/man

Documentation at
https://guix.gnu.org/cookbook/en/html_node/Required-packages.html

Greg



Re: Contribute or create a channel?

2024-03-13 Thread Attila Lendvai
> > channels are a step towards this, but they are not enough in their
> > current form to successfully accommodate for such a setup. an obvious
> > thing that is missing is a way to formally express inter-channel
> > dependencies, including some form of versioning.
> 
> 
> Do we not have this? The manual documents a mechanism for channel
> dependencies in "(guix) Declaring Channel Dependencies".
> 
> I haven't used it, but it looks like the dependencies are declared as
> channels, which can have the usual branch/commit specifications to tie
> them to specific versions.

good point, thanks!

i looked briefly at the code just now. it's not trivial, and it seems to treat 
the guix channel specially (because i don't need to specify it as a dependency 
in my channel's .guix-channel file), and i'm not sure how it behaves when e.g. 
two channels depend on the same channel, but pick two different commits... or 
all the other convoluted situations.

the reason i assumed it doesn't exist is that i've never seen it used by any 
channels that i looked at.


> What are we missing?


i guess it's time to experiment to be able to answer your question.

FTR, it's READ-CHANNEL-METADATA and friends in guix/channels.scm

note that it's not the same thing as /etc/guix/channels.scm, even though they 
appear similar (https://issues.guix.gnu.org/53657).

-- 
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“People who have never gone to school have never developed negative attitudes 
toward exploring their world.”
— Grace Llewellyn




Processing large amounts of files

2024-03-13 Thread Liliana Marie Prikler
Hi Guix,

I have a somewhat unusual workflow that requires me to do a number of
processes on numerous, but small input files.  The original is a bit
unwieldy and takes several minutes to compile, but I've managed to
produce a more understandable and better performing example.  Note,
that after a certain number of inputs, I get the following error:

info: .16 Loading workflow file `meow.gwl'...
info: 2.80 Computing workflow `cat'...
run: 12.96 Executing: /bin/sh -c 
/gnu/store/kmssbjcdcabg9fh4nxscwwpnlb4px30h-gwl-meow.scm …
error: 13.01 Wrong type argument in position 1: #f

For comparison:
  time cat /tmp/meow/{0..7769}
  […]
  
  real  0m0,144s
  user  0m0,049s
  sys   0m0,094s

It takes GWL 6 times longer to compute the workflow than to create the
inputs in Guile, and 600 times longer than to actually execute the
shell command.  I think there is room for improvement :)

Cheers
use-modules
  guix build utils

define %directory "/tmp/meow"
mkdir-p %directory
define %files
  map
lambda : i
  let
: f : file %directory / : number->string i
call-with-output-file f
  lambda : port
display "meow\n" port
. f
iota 7769

process meow
  name "meow"
  inputs %files
  outputs "meow.cat"
  # {
cat {{inputs}} > {{outputs}}
  }

workflow cat
  processes meow

Re: [fr] Moment de convivialité Guix@Paris en mars

2024-03-13 Thread Tanguy LE CARROUR
(Warning: this email is in french because the meeting is supposed
to be held in French.)

Bonjour Guix,

Pour rappel, Guix@Paris c'est demain soir ! 
C'est toujours à 19h… et, pas si exceptionnellement que ça,
ce sera chez Easter-eggs ! C'est juste en face de l’April,
à 5 mètres !

Au plaisir de vous y rencontrer,

-- 
Tanguy