Re: [PATCH] gnu: Add GNU Prolog.

2013-01-31 Thread Ludovic Courtès
Hi, Nikita Karetnikov nik...@karetnikov.org skribis: +(arguments `(#:phases (alist-cons-before + 'configure 'fix-sh + (lambda _ + (substitute* ./src/configure + ((-/bin/sh) +

Re: [PATCH] gnu: Add GNU Prolog. (was: GNU Prolog: configure: error: cannot run /bin/sh ./config.sub)

2013-01-31 Thread Andreas Enge
Am Donnerstag, 31. Januar 2013 schrieb Nikita Karetnikov: This patch works, but I'd like to simplify it a bit. Is it possible? There is no need to repeat the phases that do not change in your patch. If you have a look at icu4c.scm, there is an example using alist-replace for the configure

Re: Porting to mips64el

2013-01-31 Thread Ludovic Courtès
Nikita Karetnikov nik...@karetnikov.org skribis: # strings /nix/store/qn9m4cjncna9mcac98fynialsv2l28jm-glibc-intermediate-2.17/bin/sh | grep ld.so /nix/store/-glibc-2.13/lib/ld.so.1 How can I fix this? You should actually build a statically-linked Bash,

Re: Porting to mips64el

2013-01-31 Thread Nikita Karetnikov
You should actually build a statically-linked Bash, and edit %bootstrap-inputs to use that instead of Nixpkgs’s dynamically-linked Bash. Here's what I did: (define %bootstrap-inputs `((libc ,(nixpkgs-derivation glibc mips64el-linux)) (bash /bin/sh) ,@(map (lambda (name)

Re: Faster!

2013-01-31 Thread Ludovic Courtès
l...@gnu.org (Ludovic Courtès) skribis: No, but it’s true that it’s surprisingly slow to start: $ time ./pre-inst-env guix-package real0m1.084s user0m0.904s sys 0m0.058s This is actually the time it takes to connect to the daemon, and to compute the derivation of Guile (which