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 <masonh...@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
> 



Reply via email to