blob: 047d848f5a9104599fc3655301999aaaccc2e7cb (
plain) (
tree)
|
|
#
msgid ""
msgstr ""
msgid ""
"title: Guix build local module\n"
"date: 2020-11-27\n"
"layout: pastebin\n"
"lang: en"
msgstr ""
msgid "Inside a file named `build.scm`:"
msgstr ""
msgid ""
"(define-module (build)\n"
" #:use-module (guix packages)\n"
" #:use-module (guix download)\n"
" #:use-module (guix build-system gnu)\n"
" #:use-module (guix licenses))\n"
"\n"
"(define-public my-hello\n"
" (package\n"
" (name \"hello\")\n"
" (version \"2.10\")\n"
" (source (origin\n"
" (method url-fetch)\n"
" (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
" \".tar.gz\"))\n"
" (sha256\n"
" (base32\n"
" \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
" (build-system gnu-build-system)\n"
" (synopsis \"\")\n"
" (description \"\")\n"
" (home-page \"\")\n"
" (license gpl3+)))\n"
"\n"
msgstr ""
msgid "A plain build command didn't work:"
msgstr ""
msgid ""
"$ guix build -L. my-hello\n"
"guix build: error: my-hello : paquet inconnu\n"
msgstr ""
msgid "But with an eval expression it did:"
msgstr ""
msgid ""
"$ guix build -L. -e '(@ (build) my-hello)'\n"
"# works\n"
msgstr ""
msgid ""
"FIXED: rename `name` on line 9 of the first snippet, and use `\"my-hello\"` "
"instead of `\"hello\"`."
msgstr ""
|