help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating a manifest


From: Martin Castillo
Subject: Re: creating a manifest
Date: Sat, 18 Mar 2023 12:48:49 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

Hi,

Am 18.03.23 um 11:50 schrieb Gottfried:
> Hi,
>
> I wanted to create a manifest for music,
> .........................................................................................
> my "musik.scm":
>
> ;; Manifest Musik Programme
> (use-modules (gnu packages version-control))If this is the whole file, this use-modules is unnecessary.

>
> (specifications->manifest ’("Musescore '--with-branch=musescore=v3.6.2"
> "Ardour" "Audacious" "Audacity" "OBS Studio" "VLC Media Player"))
The cryptic error message is about an unexpected character, namely
(specifications->manifest ’  <- this backtick
It needs to be the ascii >'<.

If you fix that, you get new errors.

If you read the info page "Writing manifests", you'll see you have to use the package names like when using `guix package -i musescore` etc. when using specifications->manifest. guix search musescore would show you under `name:`, that the musescore package (in guix) is named in lowercase. Also OBS Studio is called obs, vlc is called vlc etc.

But you can not add cmdline args like --with-branch.

For that you need to instead create a new package definition for musescore version 3.6.2. The info page gives you an example, which you just adjust. Using guix edit musescore you see how musescore is defined. You can notice, there is a version field. So lets create a new package with adjusted version:

(define musescore-3.6.2
  (package
    (inherit musescore)
    (version "3.6.2")))

;; We create this manifest from a _package_, and not from a
;; _specification_ (which is just something like a string "musescore")
(packages->manifest (list musescore-3.6.2))


So now putting everything together:

;; Manifest Musik Programme
(use-modules (gnu packages music)
             (guix packages))


(define musescore-3.6.2
  (package
    (inherit musescore)
    (version "3.6.2")))

;; combine both manifest lists:
(concatenate-manifests
  (list
    (packages->manifest (list musescore-3.6.2))
(specifications->manifest '("ardour" "audacious" "audacity" "obs" "vlc"))))


>
> ..........................................................................................
>
> gfp@Tuxedo ~$ guix package -p /home/gfp/Projekte/Musik -m
> /home/gfp/Projekte/Musik/musik.scm
>
> ..........................................................................................
> I got this message:
>
> /home/gfp/Projekte/Musik/musik.scm:4:26: error: #{\x2019;}#: unbound
> variable
> hint: Did you forget a `use-modules' form?
>
>
> I surely made a mistake in my "musik.scm"
> but playing around for hours
> I prefer to ask.
>
>
> Kind regards
>
> Gottfried
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]