Re: not tarred source file

2016-05-15 Thread Ben Woodcroft

Hi there,

On 16/05/16 06:57, Ludovic Courtès wrote:

Hi!

Catonano  skribis:


after having successfully packaged (locally) the Zenburn theme and
Smartparens, I am preparing the package for clojure-mode

But for the first time it happens that the downloaded source code is not
tarred so tar fails and so does the unpack phase.

How do I instruct the origin object not to attempt untarring my source ?

It’s OK if the ‘origin’ denotes a file that is not a tarball.

However, the build procedure will have to pay attention for that.  For
instance, the default sequence of phases of ‘gnu-build-system’ includes
an ‘unpack’ phase, which is inappropriate here:

   https://www.gnu.org/software/guix/manual/html_node/Build-Systems.html

There are a couple of examples, e.g., paredit in emacs.scm.  Most of
them use ‘trivial-build-system’, which requires explicitly writing the
build/install operations.
If it is a single file then I believe it is as simple as deleting the 
unpack phase e.g. fasttree in bioinformatics.scm, I had thought it was 
still good practice not to use the trivial build system where possible 
as it omits some useful defaults.


ben



Re: not tarred source file

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

Catonano  skribis:

> after having successfully packaged (locally) the Zenburn theme and
> Smartparens, I am preparing the package for clojure-mode
>
> But for the first time it happens that the downloaded source code is not
> tarred so tar fails and so does the unpack phase.
>
> How do I instruct the origin object not to attempt untarring my source ?

It’s OK if the ‘origin’ denotes a file that is not a tarball.

However, the build procedure will have to pay attention for that.  For
instance, the default sequence of phases of ‘gnu-build-system’ includes
an ‘unpack’ phase, which is inappropriate here:

  https://www.gnu.org/software/guix/manual/html_node/Build-Systems.html

There are a couple of examples, e.g., paredit in emacs.scm.  Most of
them use ‘trivial-build-system’, which requires explicitly writing the
build/install operations.

HTH!

Ludo’.



Re: Question about nix

2016-05-15 Thread Ludovic Courtès
Hi,

"Matthew Jordan"  skribis:

> I'm wondering if anyone has any infomation on running Nix on
> guixSD. Perhaps in guix oriented way using the "config.scm" (guix system
> reconfigure).
>
> I'm also curious as to whereter guix and nix can share "/gnu/store" or do
> they need to run with their own stores?

In theory, they can share the same store and the same daemon.

In practice though, you’ll find that you cannot use substitutes for Guix
if you use a store other than “/gnu/store”, and vice versa.

Anyway, the most profitable option from a Guix perspective is if we
could tweak you into helping out Efraim finish the Go package.  :-)

Thanks,
Ludo’.



not tarred source file

2016-05-15 Thread Catonano
Hello

after having successfully packaged (locally) the Zenburn theme and
Smartparens, I am preparing the package for clojure-mode

But for the first time it happens that the downloaded source code is not
tarred so tar fails and so does the unpack phase.

How do I instruct the origin object not to attempt untarring my source ?


Re: Customize %desktop-services.

2016-05-15 Thread Dmitry Nikolaev
On 13 May 2016 at 23:26, Alex Kost  wrote:

> Dmitry Nikolaev (2016-05-12 22:45 +0300) wrote:
>
> [...]
> > How do I write something that works like "take %desktop-services, but
> > redefine (slim-service) with my definiton of (slim-service ...)"?
>
> You need to remove the default slim service and add your own.  You can
> use 'service-kind' procedure to check if the service is the one you
> need.
>
> See 
> and surrounding messages.
>
> So it would look something like this :
>
>   (cons (slim-service ...)  ; your service
> (remove (lambda (service)
>   (eq? (service-kind service)
>slim-service-type))
> %desktop-services))
>
> Note that 'remove' is from (srfi srfi-1), 'service-kind' is from (gnu
> services), 'slim-service-type' is from (gnu services xorg), so you need
> to use all these modules in your config file.


Didn't help.

  (services
   (cons*
(lsh-service #:port-number )
(gnome-desktop-service)
(xfce-desktop-service)
(console-keymap-service "ru")
(cons
 (slim-service #:allow-empty-passwords? #f #:auto-login? #f
   #:startx (xorg-start-command
 #:configuration-file (xorg-configuration-file
   #:extra-config (list libinput.conf)
   #:drivers '("radeon" "vesa")
   #:resolutions
   '((1366 768) (1024 768)
 (remove (lambda (service)
   (eq? (service-kind service)
slim-service-type))
 %desktop-services

Still gives:

guix system: error: service 'xorg-server' provided more than once

Dmitry Nikolaev