From: Ricardo Wurmus <rekado@elephly.net>
To: Mason Hock <masonhock@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Lilypond version
Date: Tue, 15 Aug 2017 10:21:19 +0200 [thread overview]
Message-ID: <8760dpgs1s.fsf@elephly.net> (raw)
In-Reply-To: <1502744909.1818.7.camel@mason-x60.resnet.ucsb.edu>
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
next prev parent reply other threads:[~2017-08-15 8:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-14 21:08 Lilypond version Mason Hock
2017-08-15 8:21 ` Ricardo Wurmus [this message]
[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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8760dpgs1s.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=help-guix@gnu.org \
--cc=masonhock@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.