unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Lilypond version
@ 2017-08-14 21:08 Mason Hock
  2017-08-15  8:21 ` Ricardo Wurmus
  0 siblings, 1 reply; 12+ messages in thread
From: Mason Hock @ 2017-08-14 21:08 UTC (permalink / raw)
  To: help-guix

I notice that Guix has Lilypond 2.19.58, which is the current unstable
version. Is it possible to access the current stable version, Lilypond
2.18.2, via Guix?

Thank you.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Lilypond version
@ 2017-08-15  2:07 Martin Castillo
  2017-08-15 15:07 ` Ricardo Wurmus
  0 siblings, 1 reply; 12+ messages in thread
From: Martin Castillo @ 2017-08-15  2:07 UTC (permalink / raw)
  To: masonhock; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 128 bytes --]

I currently have no access to a system with guix installed, but did you try
$ guix package install lilypond@2.18.2
?

Martin

[-- Attachment #2: Type: text/html, Size: 144 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lilypond version
  2017-08-14 21:08 Lilypond version Mason Hock
@ 2017-08-15  8:21 ` Ricardo Wurmus
       [not found]   ` <1503081574.1829.2.camel@mason-x60.resnet.ucsb.edu>
  0 siblings, 1 reply; 12+ messages in thread
From: Ricardo Wurmus @ 2017-08-15  8:21 UTC (permalink / raw)
  To: Mason Hock; +Cc: help-guix


Mason Hock <masonhock@gmail.com> writes:

> I notice that Guix has Lilypond 2.19.58, which is the current unstable
> version. Is it possible to access the current stable version, Lilypond
> 2.18.2, via Guix?

It has not been packaged, but it should not be difficult to add a
variant for the stable version by inheriting from the “lilypond” package
definition and overriding the version and source fields.  You can add a
module defining such a package to your GUIX_PACKAGE_PATH (see the manual
for more information about how to use this feature).

Something like this might work (untested):

--8<---------------cut here---------------start------------->8---
;;; This file is not part of GNU Guix but is distributed under the same
;;; license as GNU Guix.

(define-module (custom packages variants)
  #:use-module (guix utils)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (gnu packages)
  #:use-module (gnu packages music))

(define lilypond-stable
  (package (inherit lilypond)
    (version "2.18.2")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    "http://download.linuxaudio.org/lilypond/sources/v"
                    (version-major+minor version) "/"
                    name "-" version ".tar.gz"))
              (sha256
               (base32
                "01xs9x2wjj7w9appaaqdhk15r1xvvdbz9qwahzhppfmhclvp779j"))))))
--8<---------------cut here---------------end--------------->8---

After putting this in $GUIX_PACKAGE_PATH/custom/packages/variants.scm
and setting GUIX_PACKAGE_PATH you should be able to install it with

    guix package -i lilypond@2.18

Hope this helps!

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lilypond version
  2017-08-15  2:07 Martin Castillo
@ 2017-08-15 15:07 ` Ricardo Wurmus
  0 siblings, 0 replies; 12+ messages in thread
From: Ricardo Wurmus @ 2017-08-15 15:07 UTC (permalink / raw)
  To: Martin Castillo; +Cc: help-guix


Martin Castillo <castilma@uni-bremen.de> writes:

> I currently have no access to a system with guix installed, but did you try
> $ guix package install lilypond@2.18.2
> ?

This would require a package definition for that version of lilypond and
we don’t have that.  My instructions for GUIX_PACKAGE_PATH would add
such a package definition locally.

PS: the command would be “guix package --install lilypond@2.18.2”

-- 
Ricardo
 
GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lilypond version
       [not found]   ` <1503081574.1829.2.camel@mason-x60.resnet.ucsb.edu>
@ 2017-08-18 22:12     ` Ricardo Wurmus
       [not found]       ` <1503131963.1911.0.camel@mason-x60.resnet.ucsb.edu>
  0 siblings, 1 reply; 12+ messages in thread
From: Ricardo Wurmus @ 2017-08-18 22:12 UTC (permalink / raw)
  To: Mason Hock; +Cc: help-guix


Mason Hock <masonhock@gmail.com> writes:

> Thanks for your response. GUIX_PACKAGE_PATH is currently my home folder.
> Am I supposed to create custom/packages/variants.scm or should I set
> GUIX_PACKAGE_PATH to something else?

I suggest not to set GUIX_PACKAGE_PATH to HOME.  Better create an empty
directory “$HOME/custom-guix-things” and create the directory structure
there, so you’d have

    $HOME/custom-guix-things/custom/packages/variants.scm

and GUIX_PACKAGE_PATH pointing to “$HOME/custom-guix-things”.

The file “variants.scm” would define the module “(custom packages
variants)”.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lilypond version
       [not found]       ` <1503131963.1911.0.camel@mason-x60.resnet.ucsb.edu>
@ 2017-08-19 12:47         ` Ricardo Wurmus
       [not found]           ` <1503180987.1930.2.camel@mason-x60.resnet.ucsb.edu>
  0 siblings, 1 reply; 12+ messages in thread
From: Ricardo Wurmus @ 2017-08-19 12:47 UTC (permalink / raw)
  To: Mason Hock; +Cc: help-guix@gnu.org


Mason Hock <masonhock@gmail.com> writes:

> Thank you. How do I set GUIX_PACKAGE_PATH?

By exporting it as an environment variable:

    export GUIX_PACKAGE_PATH=/path/to/somewhere

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lilypond version
       [not found]           ` <1503180987.1930.2.camel@mason-x60.resnet.ucsb.edu>
@ 2017-08-20  6:22             ` Ricardo Wurmus
  2017-09-03 21:57               ` Mason Hock
  0 siblings, 1 reply; 12+ messages in thread
From: Ricardo Wurmus @ 2017-08-20  6:22 UTC (permalink / raw)
  To: Mason Hock; +Cc: help-guix@gnu.org

Hi,

please keep help-guix in Cc.

> Thanks. After following your steps I get
>
> guix package: warning: failed to load '(custom packages variants)':
> ERROR: Unbound variable: name
> guix package: error: lilypond: package not found for version 2.18

Okay, this means that we need to add the name field, because it is
referenced in source -> origin -> uri.

--8<---------------cut here---------------start------------->8---
(define lilypond-stable
  (package (inherit lilypond)
    (name "lilypond")
    (version "2.18.2")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    "http://download.linuxaudio.org/lilypond/sources/v"
                    (version-major+minor version) "/"
                    name "-" version ".tar.gz"))
              (sha256
               (base32
                "01xs9x2wjj7w9appaaqdhk15r1xvvdbz9qwahzhppfmhclvp779j"))))))
--8<---------------cut here---------------end--------------->8---

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lilypond version
  2017-08-20  6:22             ` Ricardo Wurmus
@ 2017-09-03 21:57               ` Mason Hock
  2017-09-04 12:43                 ` Ricardo Wurmus
  0 siblings, 1 reply; 12+ messages in thread
From: Mason Hock @ 2017-09-03 21:57 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix@gnu.org

Thank you. The first error is gone, but I still get

guix package: error: lilypond: package not found for version 2.18

Any ideas?

On Sun, 2017-08-20 at 08:22 +0200, Ricardo Wurmus wrote:
> Hi,
> 
> please keep help-guix in Cc.
> 
> > Thanks. After following your steps I get
> >
> > guix package: warning: failed to load '(custom packages variants)':
> > ERROR: Unbound variable: name
> > guix package: error: lilypond: package not found for version 2.18
> 
> Okay, this means that we need to add the name field, because it is
> referenced in source -> origin -> uri.
> 
> --8<---------------cut here---------------start------------->8---
> (define lilypond-stable
>   (package (inherit lilypond)
>     (name "lilypond")
>     (version "2.18.2")
>     (source (origin
>               (method url-fetch)
>               (uri (string-append
>                     "http://download.linuxaudio.org/lilypond/sources/v"
>                     (version-major+minor version) "/"
>                     name "-" version ".tar.gz"))
>               (sha256
>                (base32
>                 "01xs9x2wjj7w9appaaqdhk15r1xvvdbz9qwahzhppfmhclvp779j"))))))
> --8<---------------cut here---------------end--------------->8---
> 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lilypond version
  2017-09-03 21:57               ` Mason Hock
@ 2017-09-04 12:43                 ` Ricardo Wurmus
  2017-09-04 18:35                   ` Mason Hock
  0 siblings, 1 reply; 12+ messages in thread
From: Ricardo Wurmus @ 2017-09-04 12:43 UTC (permalink / raw)
  To: Mason Hock; +Cc: help-guix@gnu.org


Mason Hock <masonhock@gmail.com> writes:

> Thank you. The first error is gone, but I still get
>
> guix package: error: lilypond: package not found for version 2.18

Are there any other error messages?  It does work for me, so there are
probably other error messages that lead to a failure to evaluate the
custom module, or GUIX_PACKAGE_PATH is incorrect.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lilypond version
  2017-09-04 12:43                 ` Ricardo Wurmus
@ 2017-09-04 18:35                   ` Mason Hock
  2017-09-05  7:33                     ` Ricardo Wurmus
  0 siblings, 1 reply; 12+ messages in thread
From: Mason Hock @ 2017-09-04 18:35 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix@gnu.org

Running
$ export GUIX_PACKAGE_PATH=~/Guix
$ echo $GUIX_PACKAGE_PATH
produces "/home/<user>/Guix". The file is saved as
"/home/<user>/Guix/custom/packages/variants.scm".

Then running
$ guix package --install lilypond@2.18
or 
$ guix package --verbose --install lilypond@2.18
produces only that one error: "guix package: error: lilypond: package
not found for version 2.18"

Here's what I have in variants.scm, in case I did something wrong there:

------------------------------------------------------------------------
;;; This file is not part of GNU Guix but is distributed under the same
;;; license as GNU Guix.

(define-module (custom packages variants)
  #:use-module (guix utils)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (gnu packages)
  #:use-module (gnu packages music))

(define lilypond-stable
  (package (inherit lilypond)
    (name "lilypond")
    (version "2.18.2")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    "http://download.linuxaudio.org/lilypond/sources/v"
                    (version-major+minor version) "/"
                    name "-" version ".tar.gz"))
              (sha256
               (base32

"01xs9x2wjj7w9appaaqdhk15r1xvvdbz9qwahzhppfmhclvp779j"))))))
------------------------------------------------------------------------

On Mon, 2017-09-04 at 14:43 +0200, Ricardo Wurmus wrote:
> Mason Hock <masonhock@gmail.com> writes:
> 
> > Thank you. The first error is gone, but I still get
> >
> > guix package: error: lilypond: package not found for version 2.18
> 
> Are there any other error messages?  It does work for me, so there are
> probably other error messages that lead to a failure to evaluate the
> custom module, or GUIX_PACKAGE_PATH is incorrect.
> 
> --
> Ricardo
> 
> GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
> https://elephly.net
> 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lilypond version
  2017-09-04 18:35                   ` Mason Hock
@ 2017-09-05  7:33                     ` Ricardo Wurmus
  2017-09-06  4:22                       ` Mason Hock
  0 siblings, 1 reply; 12+ messages in thread
From: Ricardo Wurmus @ 2017-09-05  7:33 UTC (permalink / raw)
  To: Mason Hock; +Cc: help-guix@gnu.org

Hi,

> Here's what I have in variants.scm, in case I did something wrong there:
[…]
> (define lilypond-stable

This must be “define-public” instead of “define”; alternatively, you can
add “lilypond-stable” to the list of exports in the module definition.

Without this the variable is only defined locally and won’t be visible
to Guix.

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Lilypond version
  2017-09-05  7:33                     ` Ricardo Wurmus
@ 2017-09-06  4:22                       ` Mason Hock
  0 siblings, 0 replies; 12+ messages in thread
From: Mason Hock @ 2017-09-06  4:22 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix@gnu.org

That worked. Thanks!

On Tue, 2017-09-05 at 09:33 +0200, Ricardo Wurmus wrote:
> Hi,
> 
> > Here's what I have in variants.scm, in case I did something wrong there:
> […]
> > (define lilypond-stable
> 
> This must be “define-public” instead of “define”; alternatively, you can
> add “lilypond-stable” to the list of exports in the module definition.
> 
> Without this the variable is only defined locally and won’t be visible
> to Guix.
> 

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-09-06  4:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-14 21:08 Lilypond version Mason Hock
2017-08-15  8:21 ` Ricardo Wurmus
     [not found]   ` <1503081574.1829.2.camel@mason-x60.resnet.ucsb.edu>
2017-08-18 22:12     ` Ricardo Wurmus
     [not found]       ` <1503131963.1911.0.camel@mason-x60.resnet.ucsb.edu>
2017-08-19 12:47         ` Ricardo Wurmus
     [not found]           ` <1503180987.1930.2.camel@mason-x60.resnet.ucsb.edu>
2017-08-20  6:22             ` Ricardo Wurmus
2017-09-03 21:57               ` Mason Hock
2017-09-04 12:43                 ` Ricardo Wurmus
2017-09-04 18:35                   ` Mason Hock
2017-09-05  7:33                     ` Ricardo Wurmus
2017-09-06  4:22                       ` Mason Hock
  -- strict thread matches above, loose matches on Subject: below --
2017-08-15  2:07 Martin Castillo
2017-08-15 15:07 ` Ricardo Wurmus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).