From 570ec471d1605318aeefb030cd78682ae442235b Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 31 Mar 2025 21:51:40 -0300 Subject: src/content/: Update all files left to asciidoc --- .../pastebins/2020/01/04/guix-import-failure.adoc | 21 +++--------- src/content/pastebins/2020/02/14/guix-shebang.adoc | 21 +++--------- .../pastebins/2020/11/27/guix-build-local.adoc | 38 ++++++++-------------- .../pastebins/2020/12/15/guix-pack-fail.adoc | 33 +++++++------------ 4 files changed, 33 insertions(+), 80 deletions(-) (limited to 'src/content/pastebins/2020') diff --git a/src/content/pastebins/2020/01/04/guix-import-failure.adoc b/src/content/pastebins/2020/01/04/guix-import-failure.adoc index 3388a8d..9e5d987 100644 --- a/src/content/pastebins/2020/01/04/guix-import-failure.adoc +++ b/src/content/pastebins/2020/01/04/guix-import-failure.adoc @@ -1,20 +1,7 @@ ---- += Failure on Guix TeX Live importer -title: Failure on Guix TeX Live importer - -date: 2020-01-04 - -layout: post - -lang: en - -eu_categories: guix - -ref: failure-on-guix-tex-live-importer - ---- - -```shell +[source,shell] +---- $ guix import texlive fontspec redirection vers « https://ctan.org/xml/1.2/pkg/fontspec »... Backtrace: @@ -44,4 +31,4 @@ In guix/build/utils.scm: guix/build/utils.scm:652:6: In procedure invoke: Throw to key `srfi-34' with args `(#)'. -``` +---- diff --git a/src/content/pastebins/2020/02/14/guix-shebang.adoc b/src/content/pastebins/2020/02/14/guix-shebang.adoc index 67d504d..862b12f 100644 --- a/src/content/pastebins/2020/02/14/guix-shebang.adoc +++ b/src/content/pastebins/2020/02/14/guix-shebang.adoc @@ -1,23 +1,10 @@ ---- += Guix shebang -title: Guix shebang - -date: 2020-02-14 - -layout: post - -lang: en - -eu_categories: guix - -ref: guix-shebang - ---- - -```shell +[source,shell] +---- #!/usr/bin/env -S guix environment --ad-hoc bash -- bash set -Eeuo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" pwd -``` +---- diff --git a/src/content/pastebins/2020/11/27/guix-build-local.adoc b/src/content/pastebins/2020/11/27/guix-build-local.adoc index 350d50f..e703ba6 100644 --- a/src/content/pastebins/2020/11/27/guix-build-local.adoc +++ b/src/content/pastebins/2020/11/27/guix-build-local.adoc @@ -1,25 +1,14 @@ ---- += Guix build local module -title: Guix build local module +FIXED: rename `name` on line 9 of the first snippet, and use `"my-hello"` +instead of `"hello"`. -date: 2020-11-27 - -layout: post - -lang: en - -eu_categories: guix - -ref: guix-build-local-module - ---- - -FIXED: rename `name` on line 9 of the first snippet, and use `"my-hello"` instead of `"hello"`. - ---- +''''' Inside a file named `build.scm`: -```scheme + +[source,scheme] +---- (define-module (build) #:use-module (guix packages) #:use-module (guix download) @@ -42,19 +31,20 @@ Inside a file named `build.scm`: (description "") (home-page "") (license gpl3+))) - -``` +---- A plain build command didn't work: -```shell +[source,shell] +---- $ guix build -L. my-hello guix build: error: my-hello : paquet inconnu -``` +---- But with an eval expression it did: -```shell +[source,shell] +---- $ guix build -L. -e '(@ (build) my-hello)' # works -``` +---- diff --git a/src/content/pastebins/2020/12/15/guix-pack-fail.adoc b/src/content/pastebins/2020/12/15/guix-pack-fail.adoc index 2834f90..72172db 100644 --- a/src/content/pastebins/2020/12/15/guix-pack-fail.adoc +++ b/src/content/pastebins/2020/12/15/guix-pack-fail.adoc @@ -1,28 +1,15 @@ ---- += Failure with relocatable Guix pack tarball -title: Failure with relocatable Guix pack tarball - -date: 2020-12-15 - -layout: post - -lang: en - -eu_categories: guix - -ref: failure-with-relocatable-guix-pack-tarball - ---- +:post: https://guix.gnu.org/blog/2018/tarballs-the-ultimate-container-image-format/ FIXED: Use `GUIX_PROFILE= source etc/profile` ---- +''''' -The example from the [blog post][guix-tarball-article] fails. +The example from the {post}[blog post] fails. -[guix-tarball-article]: https://guix.gnu.org/blog/2018/tarballs-the-ultimate-container-image-format/ - -```shell +[source,shell] +---- $ tar xf `guix pack --relocatable -S /bin=bin -S /etc=etc guile gnutls guile-json` $ source etc/profile $ bin/guile -c '(use-modules (json))' @@ -83,14 +70,16 @@ In ice-9/boot-9.scm: ice-9/boot-9.scm:3300:6: In procedure resolve-interface: no code for module (gnutls) -``` +---- My Guix version if fairly recent: -```shell + +[source,shell] +---- $ guix describe Génération 83 14 déc. 2020 00:28:16 (actuelle) guix 41807eb URL du dépôt : https://git.savannah.gnu.org/git/guix.git branche: master commit : 41807eb5329299b8c45cd49356a4ead01ce0d469 -``` +---- -- cgit v1.2.3