Re: Guix system with home-environment

2021-11-08 Thread Andrew Tropin
On 2021-11-08 06:52, phod...@protonmail.com wrote: > Hi Andrew, > > On Wednesday, November 3rd, 2021 at 8:35 AM, Andrew Tropin > wrote: > >> On 2021-11-02 11:38, phodina wrote: >> >> > Hi, >> > >> > I just want to ask if it's possible to create an image which has both the >> > operating-system

Re: home-files-service-type file permissions

2021-11-08 Thread Andrew Tropin
On 2021-11-08 06:44, phodina wrote: > Hi Andrew, > > On Wednesday, November 3rd, 2021 at 8:24 AM, Andrew Tropin > wrote: > >> On 2021-11-02 11:31, phod...@protonmail.com wrote: >> >> > Hi Andrew, >> > >> > Thanks for the development of Guix home. I've recently switch to it from >> > my dotfiles

Re: Using julia in guix

2021-11-08 Thread Théo Maxime Tyburn
Efraim Flashner writes: >> So I run "./pre-inst-env guix shell julia". But apparently julia wasn’t >> rebuilt as I did that. So when I then run "./pre-inst-env julia" I am >> probabilly using the unpatched julia version, right ? >> If I install say "julia-docstringextensions" with guix and then

Re: Using julia in guix

2021-11-08 Thread Efraim Flashner
On Sun, Nov 07, 2021 at 05:58:28PM +0100, Théo Maxime Tyburn wrote: > > Efraim Flashner writes: > >> So I run "./pre-inst-env guix shell julia". But apparently julia wasn’t > >> rebuilt as I did that. So when I then run "./pre-inst-env julia" I am > >> probabilly using the unpatched julia version

Re: Using julia in guix

2021-11-08 Thread zimoun
Hi, On Sun, 07 Nov 2021 at 17:58, Théo Maxime Tyburn wrote: > Ok it seems I am doing it right then. When I run "./pre-inst-env guix > shell julia julia-gr" then "julia" and finally "pkg> add Plots" then Pkg > just reinstalls GR as a dependency of Plots. If I run "pkg> add GR" the > GR package al

How to add /bin/sh to the build environment

2021-11-08 Thread Foo Chuan Wei
I am trying to package the Standard ML of New Jersey (SML/NJ) compiler in Guix. My current understanding is that its installation process relies on the existence of /bin/sh in a fundamental way. Is there a way to add /bin/sh to the build environment? In the build phase of the package definition, I

Re: How to add /bin/sh to the build environment

2021-11-08 Thread Xinglu Chen
Hi, On Mon, Nov 08 2021, Foo Chuan Wei wrote: > I am trying to package the Standard ML of New Jersey (SML/NJ) compiler > in Guix. My current understanding is that its installation process > relies on the existence of /bin/sh in a fundamental way. Is there a way > to add /bin/sh to the build envir

[PATCH] gnu: Update sdlpop.

2021-11-08 Thread phodina
Hi, Unfotunately the price executable looks for a diractory DATA in the directory of argv[0], therefore the prince executable runs only from the /guix/store/xxx-sdlpop/bin directory. The following patch replaces the former location with the latter. * gnu/packages/games.scm (sdlpop)[arguments]:

Re: How to add /bin/sh to the build environment

2021-11-08 Thread Foo Chuan Wei
On 2021-11-08 17:54 +0100, Xinglu Chen wrote: > I would use ‘substitute*’ from (guix build utils) to patch the > references to /bin/sh > > (lambda* (#:key inputs #:allow-other-keys) > (let ((sh (assoc-ref inputs "bash"))) > (substitute* "some-file" >(("\"/bin/sh\"") (string-app

Re: How to add /bin/sh to the build environment

2021-11-08 Thread Leo Famulari
As you found, it's not possible to write to the root directory of the build environment as the build user. I don't remember exactly, but I believe this was done as part of the fix for CVE-2021-27851 [0]. Of course it can be annoying that /bin/sh cannot be added to the build environment, but speci

Re: How to add /bin/sh to the build environment

2021-11-08 Thread Philip McGrath
Hi, On 11/8/21 15:19, Foo Chuan Wei wrote: * Part of the build process relies on programs written in Standard ML. * The part written in Standard ML uses a function from the SML Basis Library: `OS.Process.system`. * `OS.Process.system` will always use /bin/sh. This is hardcoded. I cannot cha

Re: How to add /bin/sh to the build environment

2021-11-08 Thread Philip McGrath
(I wrote my earlier reply before I saw Leo's.) On 11/8/21 17:23, Leo Famulari wrote: It will be necessary to fix this issue in the SML/NJ package definition (I think you've done this in a followup patch) Is this , or somewhere else? Guix does not accept pac

Re: How to add /bin/sh to the build environment

2021-11-08 Thread Foo Chuan Wei
On 2021-11-08 20:36 -0500, Philip McGrath wrote: > On 11/8/21 17:23, Leo Famulari wrote: > > It will be necessary to fix this issue in the SML/NJ package definition > > (I think you've done this in a followup patch) > > Is this , or somewhere else? On 2021-11-07,