Re: [PATCH] gnu: rapicorn: Fix tests.

2016-05-15 Thread Leo Famulari
On Sun, May 15, 2016 at 01:11:06PM +0200, Ricardo Wurmus wrote:
> * gnu/packages/graphics.scm (rapicorn)[arguments]: Add build phases
> "fix-tests" and "pre-check".  Generalize "replace-/bin/ls" phase to
> "replace-fhs-paths".
> [propagated-inputs]: Add python2-enum34.
> [native-inputs]: Add xorg-server.

The test suite passes for me with these tests!



Re: [PATCH] envstore-2.1

2016-05-15 Thread Matthew Jordan
Good Day,

I updated the copyright info, and the gnu/local.mk file.

>From 718df1481b058de1f9c04b5c75504a73d5cd7067 Mon Sep 17 00:00:00 2001
From: Matthew Jordan 
Date: Thu, 12 May 2016 14:57:34 -0400
Subject: [PATCH] gnu: Add shellutils.

* gnu/package/shellutils.scm: New file.
---
 gnu/local.mk|  1 +
 gnu/packages/shellutils.scm | 50 +
 2 files changed, 51 insertions(+)
 create mode 100644 gnu/packages/shellutils.scm

diff --git a/gnu/local.mk b/gnu/local.mk
index 871174b..53a95f1 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -304,6 +304,7 @@ GNU_SYSTEM_MODULES =\
   gnu/packages/search.scm			\
   gnu/packages/serialization.scm		\
   gnu/packages/serveez.scm			\
+  gnu/packages/shellutils.scm			\
   gnu/packages/shishi.scm			\
   gnu/packages/skarnet.scm			\
   gnu/packages/skribilo.scm			\
diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm
new file mode 100644
index 000..8108b04
--- /dev/null
+++ b/gnu/packages/shellutils.scm
@@ -0,0 +1,50 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2016 Matthew Jordan 
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see .
+
+(define-module (gnu packages shellutils)
+  #:use-module (guix licenses)
+  #:use-module (guix packages)
+  #:use-module (guix download)
+  #:use-module (guix utils)
+  #:use-module (guix build-system gnu))
+
+(define-public envstore
+  (package
+(name "envstore")
+(version "2.1")
+(source
+ (origin
+   (method url-fetch)
+   (uri (string-append "https://finalrewind.org/projects/";
+   name "/" name "-" version ".tar.bz2"))
+   (sha256
+(base32 "1x97lxad80m5blhdfanl5v2qzjwcgbij2i23701bn8mpyxsrqszi"
+(build-system gnu-build-system)
+(arguments
+ `(#:test-target "test"
+   #:make-flags (list "CC=gcc"
+  (string-append "PREFIX=" (assoc-ref %outputs "out")))
+   #:phases
+   (modify-phases %standard-phases
+ (delete 'configure
+(home-page "https://finalrewind.org/projects/envstore/";)
+(synopsis "Save and restore environment variables")
+(description "Envstore is a program for sharing environment variables
+between various shells or commands.")
+(license
+ (non-copyleft "http://www.wtfpl.net/txt/copying/";
-- 
2.7.4


Sincerely,

-- 
Matthew Jordan
Sent with my mu4e

Efraim Flashner writes:

> On Sun, May 15, 2016 at 07:16:33AM -0400, Matthew Jordan wrote:
>> 
>> Good day Mark H Weaver,
>> 
>> I have updated the patch in accordance with your suggestions. And thank
>> you for the feed back you provided in your previous email. This only the
>> second package I have submitted so far.
>> 
>> Also I renamed to the source file to shellutils.scm, let me know if this
>> is acceptable. As I didn't find any other files with general names
>> implying a reference to command line utilities.
>> 
>
>> From 7c85692c7e844d84c568fc779846b5492a98bc2b Mon Sep 17 00:00:00 2001
>> From: Matthew Jordan 
>> Date: Thu, 12 May 2016 14:57:34 -0400
>> Subject: [PATCH] gnu: Add shellutils.
>> 
>> * gnu/package/shellutils.scm: New file.
>
> Don't forget to register the file in gnu/local.mk
>


Re: Content-addressed mirrors for tarballs

2016-05-15 Thread Thompson, David
On Sun, May 15, 2016 at 5:56 PM, Ludovic Courtès  wrote:
> Hello Guix!
>
> Commit cd436bf05a8344acf4462f3602e7d360821a902a allows source tarballs
> to be fetched from content-addressed mirrors, such as tarballs.nixos.org
> (I expect other mirrors will be added soon.)
>
> By default, URLs of the style http://tarballs.nixos.org/sha256/XYZ are
> automatically appended to the list of URLs that’s explicitly specified.

This is a really cool feature!

- Dave



Content-addressed mirrors for tarballs

2016-05-15 Thread Ludovic Courtès
Hello Guix!

Commit cd436bf05a8344acf4462f3602e7d360821a902a allows source tarballs
to be fetched from content-addressed mirrors, such as tarballs.nixos.org
(I expect other mirrors will be added soon.)

By default, URLs of the style http://tarballs.nixos.org/sha256/XYZ are
automatically appended to the list of URLs that’s explicitly specified.

Ludo’.



Re: Workflow management with GNU Guix

2016-05-15 Thread Ludovic Courtès
Hello Guix!

Roel Janssen  skribis:

> So, I would like to propose a new Guix subcommand and an extension to
> the package management language to add workflow management features.
>
> Would this be a feature you are interested in adding to GNU Guix?

I don’t know if it should be in Guix itself (and it’s probably too early
to think about it), but there’s definitely interest in it!

Pjotr mentioned it before, and Ricardo started a thread on this topic on
help-guix in February¹, where we discussed something similar to what you
proposed.  I agree with you that Guix should be a nice tool for the job.

¹ https://lists.gnu.org/archive/html/help-guix/2016-02/msg00019.html

> I'm currently working on a proof-of-concept implementation that has three
> record types/levels of abstraction:
> :  Describes which es should be run, and concerns itself 
> with
>  the order of execution.
>
> :   Describes what packages are needed to run the programs involved,
>  and its relationship to other processes.  Processes take input 
> and
>  generate output much like the package construction process.
>
> 

Re: [PATCH 2/2] gnu: netpbm: Fix location of X color name database.

2016-05-15 Thread Ludovic Courtès
Alex Kost  skribis:

> I think it would also be good to add #t to the end of all these phases
> to make sure that when the phases succeed, they return non-false value.

Agreed.

Federico: Please commit to ‘core-updates’, since many many things depend
on netpbm.

Thanks!

Ludo’.



Re: [PATCH] import: pypi: read requirements from wheels.

2016-05-15 Thread Ludovic Courtès
Leo Famulari  skribis:

> On Sat, Mar 26, 2016 at 02:45:50AM +0100, Cyril Roelandt wrote:
>> * doc/guix.tex (Invoking guix import): Mention that the pypi importer
>> works better with "unzip".
>> * guix/import/pypi.scm (latest-wheel-release,
>> wheel-url->extracted-directory): New procedures.
>> * tests/pypi.scm (("pypi->guix-package, wheels"): New test.
>
> Seems like a useful addition! What is the status of this patch?

(A week passes…)  Well, it looks OK now!

Cyril, if there’s nothing from the previous review round that’s missing,
please push!

Thank you, and sorry for the delay!

Ludo’.



Re: [PATCH] entr-3.5

2016-05-15 Thread Ludovic Courtès
Hello!

Matthew Jordan  skribis:

> Thank you for the welcome Ludovic Courtès. I just have a couple of
> questions.
>
>>   3. Added the file to gnu/local.mk.
>
> Is this file to be updated when a new source file is added?

Yes.

>>   4. Added a ChangeLog-style commit log.
>
> Is there a specific reference/manual on the "ChangeLog-style" I could review?

The manual contains references to the GNU Coding Standards, which
explain it in more detail:

  https://www.gnu.org/software/guix/manual/html_node/Submitting-Patches.html

Otherwise, it’s a good idea to look at the output of ‘git log’ and to
mimic what others do.  :-)

>>   2. Added a ‘remove-fhs-file-names’ phase to remove hard-coded
>>  references to /bin/cat and /usr/bin/clear.
>
> And is ‘remove-fhs-file-names’ a custom phase? If not, which source file
> contains the available phases?

No, it’s a phase I added specifically to this package.  See
gnu/packages/entr.scm.

HTH!

Ludo’.



Re: [PATCH] gnu: Add SBC.

2016-05-15 Thread Ludovic Courtès
Ricardo Wurmus  skribis:

> * gnu/packages/linux.scm (sbc): New variable.

Oky!

Thanks,
Ludo'.



Re: [PATCH] gnu: Add Chez-Scheme.

2016-05-15 Thread Ludovic Courtès
Federico Beffa  skribis:

> Well, the new release has just appeared :-) So I will switch to it 
> immediately.

Great.

Thanks for working on it, I’m surprised it took so long before someone
would propose a package.  ;-)

Ludo’.



Re: [PATCH] version bump libgcrypt -> 1.7

2016-05-15 Thread Leo Famulari
On Sat, May 14, 2016 at 11:54:30PM +, ng0 wrote:
> I guess It is safe to say that libgcrypt-1.7 does not break gnunet-gtk
> functionality, it has to be everything else I am looking at but not
> libgcrypt, error introduced itself on a new build system with
> libgcrypt-1.6.5

That's good to know. Thanks for testing!



Re: [PATCH 2/2] gnu: Add gnome-tweak-tool.

2016-05-15 Thread Leo Famulari
On Mon, May 02, 2016 at 10:19:16PM -0400, Leo Famulari wrote:
> On Tue, May 03, 2016 at 12:38:44AM +0200, Jan Nieuwenhuizen wrote:
> > Leo Famulari writes:
> > > On Wed, Apr 27, 2016 at 09:05:26PM +0200, Jan Nieuwenhuizen wrote:
> > >> Yes.  Moved python to inputs, added python wrapper.
> > >
> > > Cool!
> > 
> > :-)  Thanks
> > 
> > > Based on that, I moved python2-gobject into (inputs). I also tried
> > > removing mutter entirely, since I believe mutter is provided by
> > > gnome-shell.
> > 
> > Gee, I was sure I tried removing every individual package there...
> > 
> > > It seems to work for me. Can you see if it works for you?
> > 
> > Works for me.  This is great.  Thanks!
> 
> Great! I've attached what I have in my tree.

I updated it to 3.20.1, adjusted the commit message to use gnu/local.mk
instead of gnu-system.am, and applied as 9365ee1c464. Thanks Jan!



[PATCH] Emacs Zenburn

2016-05-15 Thread Catonano
Hello,

this is my first attempt at importing a package into Guix. My first attempt
ever.

It's trivial: the Zenburn theme for Emacs.

The linter claims that lines 44 and 45 are too long. I didn't choose myself
to make them so long. It was the automatic identation on the Emacs Scheme
mode. Did it do the wrong thing ?

It also filled my lines with tabs rather than spaces. I removed them by
hand !

Comments appreciated
Thanks


>From a8e28699e4cc02e6213047de1caae00edde06ccb Mon Sep 17 00:00:00 2001
From: humanitiesNerd 
Date: Sun, 15 May 2016 14:55:28 +0200
Subject: [PATCH] appended the package definition for the Emacs Zenburn theme
 to the gnu/packages/emacs.scm file

---
 gnu/packages/emacs.scm | 48

 1 file changed, 48 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 11010b2..e3eeaf4 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -1559,3 +1559,51 @@ to recognize a name like \"RFC 1234\".  This package
enhances ffap so
 that it correctly finds RFCs even when a space appears before the
 number.")
 (license license:gpl3+)))
+
+(define-public emacs-zenburn-theme
+  (package
+(name "emacs-zenburn-theme")
+(version "2.4")
+(source
+ (origin
+   (method url-fetch)
+   (uri (string-append
+ "http://stable.melpa.org/packages/zenburn-theme-";
+ version
+ ".el"))
+   (sha256
+(base32
+"1a65hfkrrlm8ryr2x9zja0h1n8nzk4rnsyzjacqlv4k79yal1fxg"
+(build-system trivial-build-system)
+(inputs `(("emacs" ,emacs-no-x)))
+(arguments
+ `(#:modules ((guix build utils)
+  (guix build emacs-utils))
+   #:builder
+   (begin
+ (use-modules (guix build utils))
+ (use-modules (guix build emacs-utils))
+
+ (let* ((emacs(string-append (assoc-ref %build-inputs "emacs")
+ "/bin/emacs"))
+(source   (assoc-ref %build-inputs "source"))
+(lisp-dir (string-append %output
+ "/share/emacs/site-lisp"))
+(target   (string-append lisp-dir "/zenburn-theme.el")))
+   (mkdir-p lisp-dir)
+   (copy-file source target)
+   (with-directory-excursion lisp-dir
+ (parameterize ((%emacs emacs))
+
(emacs-generate-autoloads "zenburn-theme" lisp-dir)
+   (emacs-batch-eval
'(byte-compile-file "zenburn-theme.el"
+
+(home-page
+ "http://github.com/bbatsov/zenburn-emacs";)
+(synopsis
+ "Low contrast color theme for Emacs")
+(description
+ "Port of the popular Vim theme Zenburn for Emacs 24, built on top
+of the new built-in theme support in Emacs 24.
+")
+(license license:gpl3+)))
+
-- 
2.5.5


Re: [PATCH] envstore-2.1

2016-05-15 Thread Matthew Jordan

Good day Mark H Weaver,

I have updated the patch in accordance with your suggestions. And thank
you for the feed back you provided in your previous email. This only the
second package I have submitted so far.

Also I renamed to the source file to shellutils.scm, let me know if this
is acceptable. As I didn't find any other files with general names
implying a reference to command line utilities.

>From 7c85692c7e844d84c568fc779846b5492a98bc2b Mon Sep 17 00:00:00 2001
From: Matthew Jordan 
Date: Thu, 12 May 2016 14:57:34 -0400
Subject: [PATCH] gnu: Add shellutils.

* gnu/package/shellutils.scm: New file.
---
 gnu/packages/shellutils.scm | 50 +
 1 file changed, 50 insertions(+)
 create mode 100644 gnu/packages/shellutils.scm

diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm
new file mode 100644
index 000..2c60607
--- /dev/null
+++ b/gnu/packages/shellutils.scm
@@ -0,0 +1,50 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer 
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see .
+
+(define-module (gnu packages shellutils)
+  #:use-module (guix licenses)
+  #:use-module (guix packages)
+  #:use-module (guix download)
+  #:use-module (guix utils)
+  #:use-module (guix build-system gnu))
+
+(define-public envstore
+  (package
+(name "envstore")
+(version "2.1")
+(source
+ (origin
+   (method url-fetch)
+   (uri (string-append "https://finalrewind.org/projects/";
+   name "/" name "-" version ".tar.bz2"))
+   (sha256
+(base32 "1x97lxad80m5blhdfanl5v2qzjwcgbij2i23701bn8mpyxsrqszi"
+(build-system gnu-build-system)
+(arguments
+ `(#:test-target "test"
+   #:make-flags (list "CC=gcc"
+  (string-append "PREFIX=" (assoc-ref %outputs "out")))
+   #:phases
+   (modify-phases %standard-phases
+ (delete 'configure
+(home-page "https://finalrewind.org/projects/envstore/";)
+(synopsis "Save and restore environment variables")
+(description "Envstore is a program for sharing environment variables
+between various shells or commands.")
+(license
+ (non-copyleft "http://www.wtfpl.net/txt/copying/";
-- 
2.7.4


Sincerely,

-- 
Matthew Jordan
Sent with my mu4e


Mark H Weaver writes:

> Hi,
>
> Matthew Jordan  writes:
>
>> From 8de06b6e26d9e1eb7bb7ef6df163f54a46db3d89 Mon Sep 17 00:00:00 2001
>> From: Matthew Jordan 
>> Date: Thu, 12 May 2016 14:57:34 -0400
>> Subject: [PATCH] gnu: Added envstore package.
>
> The summary line should be "gnu: Add envstore."
>
>>
>> * gnu/package/enstore.scm: New file.
>
> You misspelled "envstore.scm", but it would be better to find an
> existing file in gnu/package/*.scm that would be appropriate for this.
>
>> diff --git a/gnu/packages/envstore.scm b/gnu/packages/envstore.scm
>> new file mode 100644
>> index 000..e3ec99d
>> --- /dev/null
>> +++ b/gnu/packages/envstore.scm
>> @@ -0,0 +1,42 @@
>> +(define-module (gnu packages envstore)
>
> When adding a new *.scm file, it needs to contain a copyright notice and
> header at the top, as with our other source files.
>
>> +  #:use-module (guix)
>> +  #:use-module (guix packages)
>> +  #:use-module (guix build-system gnu)
>> +  #:use-module (gnu packages)
>> +  #:use-module (guix download)
>> +  #:use-module (guix utils)
>> +  #:use-module (guix licenses))
>> +
>> +(define-public envstore
>> +  (package
>> +(name "envstore")
>> +(version "2.1")
>> +(source
>> + (origin
>> +   (method url-fetch)
>> +   (uri (string-append "https://github.com/derf/"; name "/archive/"
>> +   version ".tar.gz"))
>
> How about using
>
>   https://finalrewind.org/projects/envstore/envstore-2.1.tar.bz2
>
> instead?  That's the tarball linked from the project's home page, and
> unlike the github tarball, it's digitally signed.
>
>> +   (sha256
>> +(base32 "097yd6w0fql8a3xh0gmz8bf40w61j4893rp8c28rngrrk80bk9a8"
>> +(build-system gnu-build-system)
>> +(arguments
>> + `(#:test-target "test"
>> +   #:phases
>> +   (modify-phases %standard-phases
>> + (delete 'configure)
>> + (replace 'build
>> +   (lambda _
>> + (setenv "CC" (which "gcc"))
>> +  

Re: [PATCH] Add Bluetooth support to Pulseaudio.

2016-05-15 Thread Ricardo Wurmus

Alex Kost  writes:

> Ricardo Wurmus (2016-05-14 12:43 +0300) wrote:
>
>> Hello Guix,
>>
>> this patch adds Bluetooth support to pulseaudio.  (Since bluez5 there
>> is no native support for the ALSA backend any more.)  This adds very
>> little to the pulseaudio closure as you can see below.
>>
>> Note that this depends on the previous patch adding SBC.
>>
>> More than 100 packages would need to be rebuilt.  Among those are big
>> packages like GNOME, Blender, and conkeror.  Should I push this to
>> core-updates then?
>
> Conkeror is not the big one; it's a rather small wrapper around icecat
> (in our case).  I don't know why "guix refresh -l pulseaudio" shows
> conkeror and not icecat, but icecat is a really big and important one,
> so I think it's better to commit this to core-updates, indeed.  Although
> ISTR Ludovic told that core-updates is only for the real core packages
> (that rebuild the whole world).

I guess we could have a “pulseaudio-update” branch then.

> BTW do you still have problems with using guix repo through ssh?  I do,
> I mean I can't push or fetch.  And as I see that other people commit to
> the guix repo, I begin to think that it's only me who have this problem.

I still have problems with it with that so I haven’t yet pushed anything
for about one week.

~~ Ricardo




[PATCH] gnu: rapicorn: Fix tests.

2016-05-15 Thread Ricardo Wurmus
* gnu/packages/graphics.scm (rapicorn)[arguments]: Add build phases
"fix-tests" and "pre-check".  Generalize "replace-/bin/ls" phase to
"replace-fhs-paths".
[propagated-inputs]: Add python2-enum34.
[native-inputs]: Add xorg-server.
---
 gnu/packages/graphics.scm | 31 ---
 1 file changed, 24 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index 64040c5..014082e 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -294,15 +294,30 @@ visual effects work for film.")
 "1y51yjrpsihas1jy905m9p3r8iiyhq6bwi2690c564i5dnix1f9d"
 (build-system gnu-build-system)
 (arguments
- `(;; FIXME: At least "testrcore1" fails.
-   #:tests? #f
-   #:phases
+ `(#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'replace-/bin/ls
+ (add-after 'unpack 'fix-tests
+   (lambda _
+ ;; Our grep does not support perl regular expressions.
+ (substitute* "taptool.sh"
+   (("grep -P") "grep -E"))
+ ;; Disable path tests because we cannot access /bin or /sbin.
+ (substitute* "rcore/tests/multitest.cc"
+   (("TCMP \\(Path::equals \\(\"/bin\"") "//"))
+ #t))
+ (add-before 'check 'pre-check
+   (lambda _
+ ;; The test suite requires a running X server (with DISPLAY
+ ;; number 99 or higher).
+ (system "Xvfb :99 &")
+ (setenv "DISPLAY" ":99")
+ #t))
+ (add-after 'unpack 'replace-fhs-paths
(lambda _
  (substitute* (cons "Makefile.decl"
 (find-files "." "^Makefile\\.in$"))
-   (("/bin/ls") (which "ls")))
+   (("/bin/ls") (which "ls"))
+   (("/usr/bin/env") (which "env")))
  #t)
 ;; These libraries are listed in the "Required" section of the pkg-config
 ;; file.
@@ -310,7 +325,8 @@ visual effects work for film.")
  `(("librsvg" ,librsvg)
("cairo" ,cairo)
("pango" ,pango)
-   ("libxml2" ,libxml2)))
+   ("libxml2" ,libxml2)
+   ("python2-enum34" ,python2-enum34)))
 (inputs
  `(("gdk-pixbuf" ,gdk-pixbuf)
("libpng" ,libpng-1.2)
@@ -325,7 +341,8 @@ visual effects work for film.")
("doxygen" ,doxygen)
("graphviz" ,graphviz)
("intltool" ,intltool)
-   ("pkg-config" ,pkg-config)))
+   ("pkg-config" ,pkg-config)
+   ("xvfb" ,xorg-server)))
 (home-page "http://rapicorn.org";)
 (synopsis "Toolkit for rapid development of user interfaces")
 (description
-- 
2.7.3





[PATCH] gnu: Add sicp.

2016-05-15 Thread Jan Nieuwenhuizen
Hi,

Too lazy to get up and go for my book shelf, I was presently surprised
that SICP is available in info; and even more surprised it hasn't been
packaged yet.

Happy hacking!
Greetings,
Jan

>From 85c7f3d9ba64989b2fbdba9ee0a0da6c635b1d3c Mon Sep 17 00:00:00 2001
From: Jan Nieuwenhuizen 
Date: Sun, 15 May 2016 09:57:05 +0200
Subject: [PATCH] gnu: Add sicp.

* gnu/packages/sicp.scm: New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
---
 gnu/local.mk  |  1 +
 gnu/packages/sicp.scm | 80 +++
 2 files changed, 81 insertions(+)
 create mode 100644 gnu/packages/sicp.scm

diff --git a/gnu/local.mk b/gnu/local.mk
index acb9790..06d6782 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -304,6 +304,7 @@ GNU_SYSTEM_MODULES =\
   gnu/packages/serialization.scm		\
   gnu/packages/serveez.scm			\
   gnu/packages/shishi.scm			\
+  gnu/packages/sicp.scm\
   gnu/packages/skarnet.scm			\
   gnu/packages/skribilo.scm			\
   gnu/packages/slang.scm			\
diff --git a/gnu/packages/sicp.scm b/gnu/packages/sicp.scm
new file mode 100644
index 000..35f7ad1
--- /dev/null
+++ b/gnu/packages/sicp.scm
@@ -0,0 +1,80 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2016 Jan Nieuwenhuizen 
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see .
+
+(define-module (gnu packages sicp)
+  #:use-module (gnu packages base)
+  #:use-module (gnu packages compression)
+  #:use-module (gnu packages texinfo)
+
+  #:use-module (guix build-system trivial)
+  #:use-module (guix git-download)
+  #:use-module (guix licenses)
+  #:use-module (guix packages))
+
+(define-public sicp
+  (package
+(name "sicp")
+(version "2016-02-20")
+(source
+ (origin
+   (method git-fetch)
+   (uri (git-reference
+ (url "https://github.com/sarabander/sicp";)
+ (commit "5b52db566968d28a89fbbaf338d207f01cc81cac")))
+   (sha256
+(base32
+ "10h6h7szwlfbshwh18bnl2hvyddj5i7106l79s145l0sjjv15cxb"
+(build-system trivial-build-system)
+(native-inputs `(("gzip" ,gzip)
+ ("source" ,source)
+ ("texinfo" ,texinfo)))
+(arguments
+ `(#:modules ((guix build utils)
+  (srfi srfi-1)
+  (srfi srfi-26))
+ #:builder
+ (let ((gzip (assoc-ref %build-inputs "gzip"))
+   (source (assoc-ref %build-inputs "source"))
+   (texinfo (assoc-ref %build-inputs "texinfo"))
+   (info-dir (string-append %output "/share/info")))
+   (use-modules (guix build utils)
+(srfi srfi-1)
+(srfi srfi-26))
+   (setenv "PATH" (string-append gzip "/bin"
+ ":" texinfo "/bin"))
+   (mkdir-p info-dir)
+   (and
+(system* "makeinfo"
+ "--output" (string-append info-dir "/sicp.info")
+ (string-append source "/sicp-pocket.texi"))
+(every zero? (map
+  (cut system* "gzip" <>)
+  (find-files info-dir)))
+(home-page "http://sarabander.github.io/sicp";)
+(synopsis "Structure and Interpretation of Computer Programs")
+(description "Structure and Interpretation of Computer Programs (SICP) is
+a textbook aiming to teach the principles of computer programming.
+
+Using Scheme, a dialect of the Lisp programming language, the book explains
+core computer science concepts such as abstraction in programming,
+metalinguistic abstraction, recursion, interpreters, and modular programming.
+
+It was first published in 1985 by MIT Press and written by Massachusetts
+Institute of Technology (MIT) professors Harold Abelson and Gerald Jay
+Sussman, with Julie Sussman.")
+(license cc-by-sa4.0)))
-- 
2.7.3


-- 
Jan Nieuwenhuizen  | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar®  http://AvatarAcademy.nl  


Re: [PATCH] Add Bluetooth support to Pulseaudio.

2016-05-15 Thread Alex Kost
Efraim Flashner (2016-05-14 22:59 +0300) wrote:

> On Sat, May 14, 2016 at 07:54:57PM +0300, Alex Kost wrote:
>> Ricardo Wurmus (2016-05-14 12:43 +0300) wrote:
>>
>> > Hello Guix,
>> >
>> > this patch adds Bluetooth support to pulseaudio.  (Since bluez5 there
>> > is no native support for the ALSA backend any more.)  This adds very
>> > little to the pulseaudio closure as you can see below.
>> >
>> > Note that this depends on the previous patch adding SBC.
>> >
>> > More than 100 packages would need to be rebuilt.  Among those are big
>> > packages like GNOME, Blender, and conkeror.  Should I push this to
>> > core-updates then?
>>
>> Conkeror is not the big one; it's a rather small wrapper around icecat
>> (in our case).  I don't know why "guix refresh -l pulseaudio" shows
>> conkeror and not icecat, but icecat is a really big and important one,
>> so I think it's better to commit this to core-updates, indeed.  Although
>> ISTR Ludovic told that core-updates is only for the real core packages
>> (that rebuild the whole world).
>
> conkeror depends on iceweasel, `guix refresh -l foo' only shows the
> leafs that need to be rebuilt.

Iceweasel?  I see that conkeror depends only on icecat.  Anyway I don't
understand: icecat depends on pulseaudio so it should probably be
displayed after "guix refresh -l pulseaudio", or did I miss your point?

>> BTW do you still have problems with using guix repo through ssh?  I do,
>> I mean I can't push or fetch.  And as I see that other people commit to
>> the guix repo, I begin to think that it's only me who have this problem.
>
> if you change your url in .git/config to:
>
> url = http://git.savannah.gnu.org/r/guix.git
>
> you should be able to fetch/pull as before

Thanks, I know that http works, but I need ssh to be able to push :-)
Apparently admins know about this problem:
http://savannah.gnu.org/forum/forum.php?forum_id=8542

BTW, I didn't change .git/config manually; I just added another (http)
remote using magit (by pressing "M a" in the magit status).

-- 
Alex