Whoops, I forgot a dependency in the manifest.

This is the correct manifest.scm.

#+BEGIN_SRC
(define-module (rzine)
  #:use-module (guix)
  #:use-module (guix profiles)
  #:use-module (guix git-download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (gnu packages)
  #:use-module (gnu packages statistics)
  #:use-module (gnu packages cran)
  #:use-module (guix-cran packages c)
  #:use-module (guix-cran packages d)
  #:use-module (guix-cran packages e)
  #:use-module (guix-cran packages g)
  #:use-module (guix-cran packages m)
  #:use-module (guix-cran packages r)
  #:use-module (guix build-system copy)
  #:use-module (guix build-system r))

(define r-rzine
  (package
    (name "r-rzine")
    (version "1.0")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
              (url "https://gitlab.huma-num.fr/rzine/package";)
              (commit "")))
       (file-name (git-file-name name version))
       (sha256
        (base32
"1nm60qjliqz78g2cba20q65122w0dpfl934gyvcylb7hj5wmmvf2"))))
    (build-system r-build-system)
    (propagated-inputs (list r-rmarkdown r-knitr r-bookdown r-htmltools
r-kableextra r-sessioninfo))
    (home-page "https://hypergeo.eu/";)
    (synopsis "Hello, GNU world: An example GNU package")
    (description "Guess what GNU Hello prints!")
    (license license:gpl3)))

(define-public rzine-documentation
    (let ((commit "1b52ccf6c7fc1413ecb2483e155082593953c71a")
        (revision "1"))  
    (package
     (name "rzine-documentation") 
    (version (git-version "1.0" revision commit))
     (source
      (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/rzine-reviews/documentation/";)
             (commit commit)))
       (file-name (git-file-name name version))
       (sha256
        (base32
"1wcc0al31k965m2mn4zn6ql1h1avgqk8211509n067dffikbgxlb"))))
     (build-system copy-build-system)
     (native-inputs (list r-minimal r-rmarkdown r-rzine))
     (arguments
      (list
       #:install-plan ''(("index.html" "share/doc/rzine-
documentation.html"))
       #:phases
       #~(modify-phases %standard-phases
                        (add-before 'install 'build
                                    (lambda _
                                      (invoke "R" "-e"
"library(rmarkdown); render(\"index.Rmd\")"))))))
     (home-page "https://doi.org/10.48645/HJVQ-YP94";)
     (synopsis "TODO")
     (description "TODO")
     (license license:gpl3))))

(packages->manifest (list rzine-documentation))
#+END_SRC

Mattia.

Le lundi 20 juillet 2026 à 16:28 +0200, Cayetano Santos a écrit :
> 
> > lun. 20 juil. 2026 at 13:53, Mattia Bunel via <[email protected]>
> > wrote:
> 
> > Hello,
> > 
> > I'm currently using Guix to package scientific articles from the
> > scientific journal Rzine (https://rzine.fr/). These articles were
> > written using RMarkdown.
> > 
> > I was able to build a functional manifest (i.e., one that works
> > with a
> > recent commit), but when I try to build it in the original context
> > (circa 2023), I get the following error :
> 
> I run it and got the following, does it make sense to you ?
> 
> ❯ guix time-machine -C channels.scm -- shell -m manifest.scm
> channels.scm:12:1: warning: channel 'guix-cran' lacks an introduction
> and cannot be authenticated
> /home/csantos/.config/guix/current/share/guile/site/3.0/guix/platform
> s/loongarch.scm:25:2: warning: extraneous field initializers (rust-
> target)
> substitute: looking for substitutes on
> 'https://bordeaux.guix.gnu.org'... 100.0%
> substitute: looking for substitutes on 'https://ci.guix.gnu.org'...
> 100.0%
> The following derivation will be built:
>   /gnu/store/i839q34f5djwn7api9jx33qs2z9a8xhf-rzine-documentation-
> 1.0-1.1b52ccf.drv
> 
> building /gnu/store/i839q34f5djwn7api9jx33qs2z9a8xhf-rzine-
> documentation-1.0-1.1b52ccf.drv...
> > 'build' phasebuilder for
> > `/gnu/store/i839q34f5djwn7api9jx33qs2z9a8xhf-rzine-documentation-
> > 1.0-1.1b52ccf.drv' failed with exit code 1
> build of /gnu/store/i839q34f5djwn7api9jx33qs2z9a8xhf-rzine-
> documentation-1.0-1.1b52ccf.drv failed
> View build log at
> '/var/log/guix/drvs/i8/39q34f5djwn7api9jx33qs2z9a8xhf-rzine-
> documentation-1.0-1.1b52ccf.drv.gz'.
> guix shell: error: build of
> `/gnu/store/i839q34f5djwn7api9jx33qs2z9a8xhf-rzine-documentation-1.0-
> 1.1b52ccf.drv' failed
> 
> With:
> 
>   22 │ Error in loadNamespace(x) : there is no package called ‘rzine’
>   23 │ Calls: render ... loadNamespace -> withRestarts ->
> withOneRestart -> doWithOneRestart
>   24 │ Execution halted
>   25 │ error: in phase 'build': uncaught exception:
>   26 │ %exception #<&invoke-error program: "R" arguments: ("-e"
> "library(rmarkdown); render(\"index.Rmd\")") exit-status: 1 term-
> signal: #f stop-signal: #f>
>   27 │ phase `build' failed after 0.3 seconds
>   28 │ command "R" "-e" "library(rmarkdown); render(\"index.Rmd\")"
> failed with status 1starting phase `build'
>   29 │
>   30 │ R version 4.2.2 (2022-10-31) -- "Innocent and Trusting"
>   31 │ Copyright (C) 2022 The R Foundation for Statistical Computing
>   32 │ Platform: x86_64-unknown-linux-gnu (64-bit)
>   33 │
>   34 │ R is free software and comes with ABSOLUTELY NO WARRANTY.
>   35 │ You are welcome to redistribute it under certain conditions.
>   36 │ Type 'license()' or 'licence()' for distribution details.
>   37 │
>   38 │   Natural language support but running in an English locale
>   39 │
>   40 │ R is a collaborative project with many contributors.
>   41 │ Type 'contributors()' for more information and
>   42 │ 'citation()' on how to cite R or R packages in publications.
>   43 │
>   44 │ Type 'demo()' for some demos, 'help()' for on-line help, or
>   45 │ 'help.start()' for an HTML browser interface to help.
>   46 │ Type 'q()' to quit R.
>   47 │
>   48 │ > library(rmarkdown); render("index.Rmd")
>   49 │ Error in loadNamespace(x) : there is no package called ‘rzine’
>   50 │ Calls: render ... loadNamespace -> withRestarts ->
> withOneRestart -> doWithOneRestart
>   51 │ Execution halted
>   52 │ error: in phase 'build': uncaught exception:
>   53 │ %exception #<&invoke-error program: "R" arguments: ("-e"
> "library(rmarkdown); render(\"index.Rmd\")") exit-status: 1 term-
> signal: #f stop-signal: #f>
>   54 │ phase `build' failed after 0.3 seconds
>   55 │ command "R" "-e" "library(rmarkdown); render(\"index.Rmd\")"
> failed with status 1

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to