Re: more package transformations: overrides

2023-03-25 Thread Maxim Cournoyer
Hello, Ricardo Wurmus writes: > Maxim Cournoyer writes: > >>> I think it would improve usability to be able to use the *same* names in >>> an override file. Got a package with name “python-pytorch” in that >>> file? It replaces “python-pytorch” in the graph. >> >> It's still a bit too abstrac

Re: more package transformations: overrides

2023-03-24 Thread Maxim Cournoyer
Hello, Sarthak Shah writes: > Hello, > >> By separate file or stdin your really mean stdin, correct? As in: >> >> --8<---cut here---start->8--- >> guix something < args.txt or >> echo "$args" | guix something >> --8<---cut here---end--

Re: more package transformations: overrides

2023-03-24 Thread Maxim Cournoyer
Hi Ricardo, Ricardo Wurmus writes: > Maxim Cournoyer writes: > >>> Considering that the transformations API assumes that you understand >>> that higher order functions exist and what to do with them, I think it >>> would be good to offer a slightly less advanced method of overriding >>> package

Re: more package transformations: overrides

2023-03-24 Thread Sarthak Shah
Hello, > By separate file or stdin your really mean stdin, correct? As in: > > --8<---cut here---start->8--- > guix something < args.txt or > echo "$args" | guix something > --8<---cut here---end--->8--- > > One note: since t

Re: more package transformations: overrides

2023-03-24 Thread Sarthak Shah
Hello! Thanks for the CC, Josselin! I like Maxim's idea of providing all kinds of arguments through a separate file or stdin. Here's a tiny proof-of-concept script implementing that: -guix-shell-with-args.sh #!/usr/bin/env bash argstr="" while read line do argstr="$argstr $line" done < "$

Re: more package transformations: overrides

2023-03-24 Thread Maxim Cournoyer
Hi! Sarthak Shah writes: > Hello! > Thanks for the CC, Josselin! > I like Maxim's idea of providing all kinds of arguments through a separate > file or stdin. > Here's a tiny proof-of-concept script implementing that: > -guix-shell-with-args.sh > #!/usr/bin/env bash > argstr="" > while r

Re: more package transformations: overrides

2023-03-23 Thread Ricardo Wurmus
Maxim Cournoyer writes: >> Considering that the transformations API assumes that you understand >> that higher order functions exist and what to do with them, I think it >> would be good to offer a slightly less advanced method of overriding >> packages. >> >> Manifests can do anything, but thi

Re: more package transformations: overrides

2023-03-22 Thread Maxim Cournoyer
Hi! Ricardo Wurmus writes: > Maxim Cournoyer writes: > >> Hi Ricardo, >> >> Ricardo Wurmus writes: >> >>> Hi Guix, >>> >>> when using package transformations the command line can become crowded >>> very quickly. Sometimes I would like to be able to provide a file >>> containing a set of alter

Re: more package transformations: overrides

2023-03-22 Thread Ricardo Wurmus
Maxim Cournoyer writes: > Hi Ricardo, > > Ricardo Wurmus writes: > >> Hi Guix, >> >> when using package transformations the command line can become crowded >> very quickly. Sometimes I would like to be able to provide a file >> containing a set of alternative packages that are used recursivel

Re: more package transformations: overrides

2023-03-22 Thread Maxim Cournoyer
Hi Ricardo, Ricardo Wurmus writes: > Hi Guix, > > when using package transformations the command line can become crowded > very quickly. Sometimes I would like to be able to provide a file > containing a set of alternative packages that are used recursively in > the package dependency graph, as

Re: more package transformations: overrides

2023-03-22 Thread Ludovic Courtès
Hi, Ricardo Wurmus skribis: > when using package transformations the command line can become crowded > very quickly. Sometimes I would like to be able to provide a file > containing a set of alternative packages that are used recursively in > the package dependency graph, as some sort of overri

Re: more package transformations: overrides

2023-03-22 Thread Josselin Poiret
Hi Ricardo, Ricardo Wurmus writes: > Hi Guix, > > when using package transformations the command line can become crowded > very quickly. Sometimes I would like to be able to provide a file > containing a set of alternative packages that are used recursively in > the package dependency graph, as

more package transformations: overrides

2023-03-22 Thread Ricardo Wurmus
Hi Guix, when using package transformations the command line can become crowded very quickly. Sometimes I would like to be able to provide a file containing a set of alternative packages that are used recursively in the package dependency graph, as some sort of override. What do you think about