From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Lilypond version Date: Tue, 15 Aug 2017 10:21:19 +0200 Message-ID: <8760dpgs1s.fsf@elephly.net> References: <1502744909.1818.7.camel@mason-x60.resnet.ucsb.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhX6P-0008V4-Ib for help-guix@gnu.org; Tue, 15 Aug 2017 04:21:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhX6M-0002jO-Dm for help-guix@gnu.org; Tue, 15 Aug 2017 04:21:29 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21009) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dhX6M-0002ik-6B for help-guix@gnu.org; Tue, 15 Aug 2017 04:21:26 -0400 In-reply-to: <1502744909.1818.7.camel@mason-x60.resnet.ucsb.edu> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Mason Hock Cc: help-guix@gnu.org Mason Hock 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