[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: what might be wrong with my nightly function?
From: |
jgart |
Subject: |
Re: what might be wrong with my nightly function? |
Date: |
Wed, 16 Nov 2022 06:55:21 -0600 |
On Wed, 16 Nov 2022 07:08:10 +0100 Julien Lepiller <julien@lepiller.eu> wrote:
> Haven't tested and you didn't share what was the issue. The obvious thing I
> see is #:olive-hash is (base32 "…") by default, so the origin uses (sha256
> (base32 (base32 "…"))) by default
Thanks for catching that one!
I think the other issue is the way I am constructing the version and
then calling it at the command line:
guix doesn't like this:
guix build -L . olive@3302c36
;; let's tracking nightlies!
(define* (make-olive-nightly #:key olive-commit olive-hash)
(package (inherit olive)
(name "olive")
(version (string-take olive-commit 7))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/olive-editor/olive")
(commit olive-commit)))
(file-name (git-file-name name version))
(sha256
(base32 olive-hash))))
(build-system cmake-build-system)
(arguments `(,@(package-arguments olive)
#:tests? #f))))
(define-public olive-3302c36
(make-olive-nightly
#:olive-commit "3302c3633c665fd32152217f254b53654945f2dd"
#:olive-hash "0pp6dxn53aw6iiy9wnbkkmg8mcqpx8wy6nify8j4hrzvzrmks82c"))