diff options
Diffstat (limited to 'src/content/pastebins/2020/11')
-rw-r--r-- | src/content/pastebins/2020/11/27/guix-build-local.adoc | 38 |
1 files changed, 14 insertions, 24 deletions
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 -``` +---- |