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

Re: How to compile native?

2021-04-14 Thread Xinglu Chen
On Wed, Apr 14 2021, Vincent Legoll wrote: >> If you wanted to compile packages with specific compile flags, then >> you'll need to make custom package definitions. > > That's probably what Charles wants, but in a global way, settings > CFLAGS once for the whole distro. The manual mentions the ‘p

Re: Building packages in REPL

2021-03-20 Thread Xinglu Chen
On Fri, Jul 24 2020, Ludovic Courtès wrote: > (guix scripts) has a high-level ‘build-package’ procedure (initially > written for Emacs-Guix) that can be used like this: > > --8<---cut here---start->8--- > $ guix repl > GNU Guile 3.0.4 > Copyright (C) 1995-2020 F

Re: nix shellHook equivalent for guix environment?

2021-03-10 Thread Xinglu Chen
-->8--- use_guix --ad-hoc git -L manifest.scm echo "Environment created!" [...] --8<---cut here---end--->8--- [1] https://direnv.net/ [2] https://github.com/direnv/direnv/wiki/GNU-Guix -- Xinglu Chen

Re: Cannot install packages

2021-02-20 Thread Xinglu Chen
I ended up installing Guix from the binary bootstrap rather than compiling from source, and it worked as expected. :-) If anyone else bumps into the same problem, see the discussion I had with some other people [1]. Sorry for the noise. [1] https://github.com/bqv/guix/issues/2

Cannot install packages

2021-01-24 Thread Xinglu Chen
bx0q856phzxmpp-glibc-utf8-locales-2.31.drv' failed (usually happens due to networking issues); try `--fallback' to build derivation from source When doing `guix install --fallback hello`, it can download the tarballs just fine, but packages cannot get built. Any ideas on why this happen