inside the Guile REPL

2015-06-16 Thread Pjotr Prins
I have started to document how to use Guix from the Guile REPL. Tips/hints wanted from experienced hackers! This is not only to keep my memory fresh, it may be useful for others. https://github.com/pjotrp/guix-notes/blob/master/HACKING.org#debugging-the-package If this is covered elsewhere I w

Preparing for core-updates merge

2015-06-16 Thread Ludovic Courtès
Hello! I think we can soon get core-updates built entirely so we can merge it afterwards. Any objections? Can someone confirm that everything is OK on armhf? (Mark tested a few days ago, so I guess this should be OK.) Thanks, Ludo’.

Re: [PATCH] Add Faust and Guitarix.

2015-06-16 Thread Ludovic Courtès
Mark H Weaver skribis: > Alex Kost writes: > >> Ricardo Wurmus (2015-06-14 19:32 +0300) wrote: >> >> [...] >>> +(build-system gnu-build-system) >>> +(arguments >>> + `(#:make-flags (list (string-append "prefix=" (assoc-ref %outputs >>> "out"))) >> >> I think it is clearer to use jus

Re: guix environment

2015-06-16 Thread Ludovic Courtès
Pjotr Prins skribis: > On Mon, Jun 15, 2015 at 03:22:55PM -0400, Thompson, David wrote: >> On Mon, Jun 15, 2015 at 3:10 PM, Pjotr Prins >> wrote: >> > On Mon, Jun 15, 2015 at 09:10:15AM -0400, Thompson, David wrote: >> >> On Mon, Jun 15, 2015 at 2:55 AM, Pjotr Prins >> >> wrote: >> >> > >> >>

[PATCH] Add idr.

2015-06-16 Thread Ricardo Wurmus
>From 815a5e24f43f61c4beb243d98beb0659bbd74b3a Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 16 Jun 2015 11:33:26 +0200 Subject: [PATCH] gnu: Add idr. * gnu/packages/bioinformatics.scm (idr): New variable. --- gnu/packages/bioinformatics.scm | 40 ++

Re: [PATCH] Libressl

2015-06-16 Thread Ludovic Courtès
Mark H Weaver skribis: > Andreas Enge writes: [...] >> the next question would be whether we should switch >> all inputs from openssl to libressl. I tried it for fetchmail, and it works >> just the same. > > I would be in favor of trying this in core-updates. I think this should rather be tri

decoding error

2015-06-16 Thread Federico Beffa
Hi, in a package for AUCTeX that I'm preparing, I'm trying to replace any reference to '/bin/sh' in '.el' files with (with-directory-excursion el-dir (substitute* (find-files "." "\\.el$") (("/bin/sh") (which "sh" A particular file causes Guile to produce the following error: ice-9/bo

Re: guix environment

2015-06-16 Thread Pjotr Prins
On Tue, Jun 16, 2015 at 09:59:46AM +0200, Ludovic Courtès wrote: > >> > $GEM_HOME > >> > >> This one doesn't make sense because it specifies where gems are to be > >> installed. Store items are immutable, so one cannot install gems into > >> them. > > > > We still provide the gem tool ;). If we s

Re: decoding error

2015-06-16 Thread Ricardo Wurmus
> in a package for AUCTeX that I'm preparing, I'm trying to replace any > reference to '/bin/sh' in '.el' files with > > (with-directory-excursion el-dir > (substitute* (find-files "." "\\.el$") (("/bin/sh") (which "sh" > > A particular file causes Guile to produce the following error: >

Re: decoding error

2015-06-16 Thread Federico Beffa
On Tue, Jun 16, 2015 at 12:07 PM, Ricardo Wurmus wrote: > How about this: > > (with-directory-excursion el-dir > (with-fluids ((%default-port-encoding #f)) > (substitute* (find-files "." "\\.el$") (("/bin/sh") (which "sh") That did the trick. Thanks! Fede

Re: decoding error

2015-06-16 Thread Ludovic Courtès
Federico Beffa skribis: > Emacs says that the file is encoded with iso-8859-1-unix In that case the solution is to tell Guile to use ISO-8859-1 as the default encoding where you fiddle with that file: (paramaterize ((%default-port-encoding "ISO-8859-1")) (substitute* ...)) (This is equiv

Re: guix environment

2015-06-16 Thread Ludovic Courtès
Pjotr Prins skribis: > On Tue, Jun 16, 2015 at 09:59:46AM +0200, Ludovic Courtès wrote: >> >> > $GEM_HOME >> >> >> >> This one doesn't make sense because it specifies where gems are to be >> >> installed. Store items are immutable, so one cannot install gems into >> >> them. >> > >> > We still

Re: inside the Guile REPL

2015-06-16 Thread Ludovic Courtès
Pjotr Prins skribis: > I have started to document how to use Guix from the Guile REPL. > Tips/hints wanted from experienced hackers! This is not only to keep > my memory fresh, it may be useful for others. > > > https://github.com/pjotrp/guix-notes/blob/master/HACKING.org#debugging-the-package

Re: matplotlib broken

2015-06-16 Thread Ludovic Courtès
Federico Beffa skribis: > l...@gnu.org (Ludovic Courtès) writes: > >> I don’t know if I’m missing something, but when I type ‘matplotlib’ at >> the prompt, I get: >> >> /gnu/store/g4m8q73cq4lym3v1ag7pnk5zv49mdifs-python-matplotlib-1.4.2/lib/python3.4/site-packages/matplotlib-1.4.2-py3.4-linux-x86

Re: inside the Guile REPL

2015-06-16 Thread Amirouche Boubekki
On 2015-06-16 09:04, Pjotr Prins wrote: I have started to document how to use Guix from the Guile REPL. Tips/hints wanted from experienced hackers! This is not only to keep my memory fresh, it may be useful for others. https://github.com/pjotrp/guix-notes/blob/master/HACKING.org#debugging-the-p

Help needed with security updates for Qt

2015-06-16 Thread Mark H Weaver
Hi, Qt includes bundled copies of a *lot* of stuff. Among other things, it bundles Chromium, which also bundles a lot of stuff. Someone who cares about Qt needs to be on top of security updates for the things it bundles. Better yet, we should try to get it to use our system copies of libraries

[PATCH] Add Blast+.

2015-06-16 Thread Ricardo Wurmus
>From 81cbb9bfa523d56c68d5f9f4feed3676edb5a414 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 16 Jun 2015 16:24:24 +0200 Subject: [PATCH] gnu: Add Blast+. * gnu/packages/bioinformatics.scm (blast+): New variable. --- gnu/packages/bioinformatics.scm | 156 +++

Re: guix environment

2015-06-16 Thread Pjotr Prins
On Tue, Jun 16, 2015 at 01:23:23PM +0200, Ludovic Courtès wrote: > > On Debian it is > > > > - INSTALLATION DIRECTORY: /var/lib/gems/1.9.1 > > > > (so, by default, you need sudo to run gem) > > > > My proposal is to have it user based and isolated, e.g., > > > > - INSTALLATION DIRECTORY: >

Re: inside the Guile REPL

2015-06-16 Thread Pjotr Prins
On Tue, Jun 16, 2015 at 01:38:18PM +0200, Ludovic Courtès wrote: > I think it would be nice to see what could be folded into the manual. Let me continue for a while. I am writing up what I am discovering - and I am enjoying it. Every time I am confirmed that using Guile was a smart move. I'll try

Re: [PATCH] Add idr.

2015-06-16 Thread Ludovic Courtès
Ricardo Wurmus skribis: > From 815a5e24f43f61c4beb243d98beb0659bbd74b3a Mon Sep 17 00:00:00 2001 > From: Ricardo Wurmus > Date: Tue, 16 Jun 2015 11:33:26 +0200 > Subject: [PATCH] gnu: Add idr. > > * gnu/packages/bioinformatics.scm (idr): New variable. [...] > + 'install 'wrap-program

Re: [PATCH] Add Faust and Guitarix.

2015-06-16 Thread Ludovic Courtès
Ricardo Wurmus skribis: > From 7d0f4d6702cf6ed370e534862244fb65c414f46d Mon Sep 17 00:00:00 2001 > From: Ricardo Wurmus > Date: Sun, 14 Jun 2015 15:00:37 +0200 > Subject: [PATCH 1/3] gnu: Add Faust. > > * gnu/packages/audio.scm (faust): New variable. [...] > + 'unpack 'remove-prebuilt

Re: [PATCH] gnu: Add ruby 1.8.7 package

2015-06-16 Thread Pjotr Prins
Anything wrong with this patch? On Sun, Jun 14, 2015 at 10:36:40AM +0200, Pjotr Prins wrote: > From be945cf4d65ab77eb8bd7a462aa0b7d24877ba74 Mon Sep 17 00:00:00 2001 > From: pjotrp > Date: Sat, 13 Jun 2015 13:22:10 +0200 > Subject: [PATCH] gnu: Add ruby 2.1.6 > > * gnu/packages/ruby.scm (ruby-2.

Re: emacs packages

2015-06-16 Thread Ludovic Courtès
Federico Beffa skribis: > To be concrete about what I'm proposing, attached you find: > > - An ELPA package importer > - An 'emacs-build-system' Sounds very useful to me! > There are a lot of Emacs packages. For this reason I would like to > propose to prefix them with 'emacs-' as we do with Py

Re: [PATCH] gnu: Add ruby 1.8.7 package

2015-06-16 Thread Thompson, David
On Tue, Jun 16, 2015 at 11:46 AM, Pjotr Prins wrote: > Anything wrong with this patch? > > On Sun, Jun 14, 2015 at 10:36:40AM +0200, Pjotr Prins wrote: >> From be945cf4d65ab77eb8bd7a462aa0b7d24877ba74 Mon Sep 17 00:00:00 2001 >> From: pjotrp >> Date: Sat, 13 Jun 2015 13:22:10 +0200 >> Subject: [P

Re: decoding error

2015-06-16 Thread Federico Beffa
On Tue, Jun 16, 2015 at 1:20 PM, Ludovic Courtès wrote: > (paramaterize ((%default-port-encoding "ISO-8859-1")) > (substitute* ...)) > > (This is equivalent to what Ricardo suggested, but making the encoding > name explicit is clearer in this case.) Agreed, Thanks! Fede

Re: emacs packages

2015-06-16 Thread Pjotr Prins
Awesome developments! On Tue, Jun 16, 2015 at 06:00:44PM +0200, Ludovic Courtès wrote: > Federico Beffa skribis: > > > To be concrete about what I'm proposing, attached you find: > > > > - An ELPA package importer > > - An 'emacs-build-system' > > Sounds very useful to me! > > > There are a lo

Re: emacs packages

2015-06-16 Thread Mark H Weaver
Federico Beffa writes: > (define* (build #:key outputs inputs #:allow-other-keys) > "Compile .el files." > (let* ((emacs (string-append (assoc-ref inputs "emacs") "/bin/emacs")) > (out (assoc-ref outputs "out")) > (name-ver (store-dir->elpa-name-version out)) > (el-

Re: matplotlib broken

2015-06-16 Thread Federico Beffa
On Tue, Jun 16, 2015 at 1:50 PM, Ludovic Courtès wrote: >>> I don’t know if I’m missing something, but when I type ‘matplotlib’ at >>> the prompt, I get: >>> >>> /gnu/store/g4m8q73cq4lym3v1ag7pnk5zv49mdifs-python-matplotlib-1.4.2/lib/python3.4/site-packages/matplotlib-1.4.2-py3.4-linux-x86_64.egg/

Re: Update on GuixSD containers

2015-06-16 Thread Thompson, David
On Sat, Jun 13, 2015 at 4:19 PM, Ludovic Courtès wrote: > "Thompson, David" skribis: > >> On Sat, Jun 13, 2015 at 9:06 AM, Ludovic Courtès wrote: >>> "Thompson, David" skribis: >>> On Fri, Jun 12, 2015 at 11:12 AM, Ludovic Courtès wrote: > "Thompson, David" skribis: > >> Yeah

Re: Complete './pre-inst-env guix ...'

2015-06-16 Thread Alex Kost
Ludovic Courtès (2015-06-15 23:16 +0300) wrote: > Alex Kost skribis: > >> So (analogously to 'pcomplete/sudo') the following function may be used >> to complete "pre-inst-env" properly: >> >> (defun pcomplete/pre-inst-env () >> (pcmpl-args-pcomplete >>(pcmpl-args-make-argspecs >> `((arg

Re: inside the Guile REPL

2015-06-16 Thread Mark H Weaver
Pjotr Prins writes: > I have started to document how to use Guix from the Guile REPL. > Tips/hints wanted from experienced hackers! This is not only to keep > my memory fresh, it may be useful for others. > > > https://github.com/pjotrp/guix-notes/blob/master/HACKING.org#debugging-the-package

Re: Using symlinks in 'local-file'

2015-06-16 Thread Alex Kost
Ludovic Courtès (2015-06-15 23:44 +0300) wrote: > Alex Kost skribis: > >> If one uses a relative symlink in 'local-file', it will lead to a broken >> symlink in the store as illustrated in the attached example. So I think >> it either: >> >> - should be documented explicitly that 'local-file' ad

Re: Preparing for core-updates merge

2015-06-16 Thread Ludovic Courtès
It’s building now! It may be that some of your favorite packages will fail to build with 4.9, so keep an eye on it. Ludo’.

Re: emacs packages

2015-06-16 Thread Federico Beffa
On Tue, Jun 16, 2015 at 6:24 PM, Mark H Weaver wrote: > FYI, this pattern of using 'fold' with 'and' and a boolean seed would be > more transparent if handled by 'every' from (srfi srfi-1): > > (every (lambda (f) >(zero? (system* emacs "--batch" "-Q" "-L" el-dir >

guix edit

2015-06-16 Thread Ludovic Courtès
While looking at another package manager for ideas to steal, I found this one to be a good candidate: guix edit gcc-4.8 will open $EDITOR (aka. “emacsclient”) on the definition of that package. This is pretty handy for developers (even when otherwise using Geiser, I think.) For “regular users

Re: guix edit

2015-06-16 Thread Thompson, David
On Tue, Jun 16, 2015 at 4:26 PM, Ludovic Courtès wrote: > While looking at another package manager for ideas to steal, I found > this one to be a good candidate: > > guix edit gcc-4.8 > > will open $EDITOR (aka. “emacsclient”) on the definition of that > package. This is pretty handy for develo

Re: guix edit

2015-06-16 Thread Amirouche Boubekki
On 2015-06-16 22:26, l...@gnu.org wrote: While looking at another package manager for ideas to steal, I found this one to be a good candidate: guix edit gcc-4.8 will open $EDITOR (aka. “emacsclient”) on the definition of that package. This is pretty handy for developers (even when otherwise

Re: [PATCH] Add Blast+.

2015-06-16 Thread Mark H Weaver
Ricardo Wurmus writes: > From 81cbb9bfa523d56c68d5f9f4feed3676edb5a414 Mon Sep 17 00:00:00 2001 > From: Ricardo Wurmus > Date: Tue, 16 Jun 2015 16:24:24 +0200 > Subject: [PATCH] gnu: Add Blast+. > > * gnu/packages/bioinformatics.scm (blast+): New variable. > --- > gnu/packages/bioinformatics.sc

[PATCH] gnu: cross-base: Build the correct cross-mig.

2015-06-16 Thread Manolis Ragkousis
With this patch, cross-mig is built the correct way. From eece3c8f30d0eb5ad939106e08e621120b83c3b6 Mon Sep 17 00:00:00 2001 From: Manolis Ragkousis Date: Tue, 16 Jun 2015 22:47:16 +0300 Subject: [PATCH] gnu: cross-base: Build the correct cross-mig. * gnu/packages/cross-base.scm (xmig): Pass '--ta

Guix package steps

2015-06-16 Thread Daniel Pimentel
Hi guix, I tried create new packages (ipcalc, nmap, xfburn and others) but without success. My steps (based on talk GNU Guix packaging by Andreas Enge): 0. Git clone guix repository by savannah; 1. Copy gnu/package/indent.scm to mypackage.scm in this same folder; 2. Add module to gnu-system.am

[PATCH] Add diamond

2015-06-16 Thread Ben Woodcroft
Hi, I'm quite new, so I strongly suspect there might be fixups required, but it works on my box. Well, it works on my setup in an isolated .scm file, but I wasn't sure how to test after I had patched bioinformatics.scm i.e. I expected the following to work. Thanks, there's a couple more patch

Re: Guix package steps

2015-06-16 Thread Mark H Weaver
Daniel Pimentel writes: > I tried create new packages (ipcalc, nmap, xfburn and others) but > without success. > > My steps (based on talk GNU Guix packaging by Andreas Enge): > 0. Git clone guix repository by savannah; > 1. Copy gnu/package/indent.scm to mypackage.scm in this same folder; > 2. A

Re: [PATCH] Add diamond

2015-06-16 Thread Mark H Weaver
Ben Woodcroft writes: > I'm quite new, so I strongly suspect there might be fixups required, > but it works on my box. Well, it works on my setup in an isolated .scm > file, but I wasn't sure how to test after I had patched > bioinformatics.scm i.e. I expected the following to work. Thanks, > the

Re: [PATCH] Add diamond

2015-06-16 Thread Mark H Weaver
Ben Woodcroft writes: > From e24f4de21ee3c367c38e431626f4796795eb9e18 Mon Sep 17 00:00:00 2001 > From: Ben Woodcroft > Date: Wed, 17 Jun 2015 11:49:27 +1000 > Subject: [PATCH] gnu: Add diamond. > > * gnu/packages/bioinformatics.scm (diamond): New variable. > --- > gnu/packages/bioinformatics.sc

Re: guix edit

2015-06-16 Thread Eric Bavier
On Tue, 16 Jun 2015 22:26:49 +0200 l...@gnu.org (Ludovic Courtès) wrote: > While looking at another package manager for ideas to steal, I found > this one to be a good candidate: > > guix edit gcc-4.8 > > will open $EDITOR (aka. “emacsclient”) on the definition of that > package. This is pret