AtlatestRepositorycore-channel
1;;; Smoke-test packages.
2;;;
3;;; GNU hello exists to be the smallest thing that can go wrong. It is what
4;;; `demo/env.sgl` builds, what the README's first-run instructions tell a new
5;;; user to run, and what `scripts/gate-crosscheckout.sh` uses to prove that a
6;;; bare clone of this repository can bootstrap and produce a running program.
7;;;
8;;; It therefore needs a `core/hello` catalogue binding. Without one the
9;;; documented onboarding path fails with "catalogue has no binding core/hello",
10;;; because `production-resolve` only resolves names the signed catalogue
11;;; carries -- the legacy `recipes/hello.sgl` is invisible to it.
12(define-library (core packages demo)
13 (import (sigil core)
14 (core build-environments)
15 (sigil env package)
16 (sigil build external))
17 (export hello)
18 (begin
19 (define hello
20 (package
21 name: "hello"
22 version: "2.12.2"
23 source: (external-source
24 location: "https://ftp.gnu.org/gnu/hello/hello-2.12.2.tar.gz"
25 sha256: "5a9a996dc292cc24dcf411cee87e92f6aae5b8d13bd9c6819b4c7a9dce0818ab")
26 buildenv: core-buildenv
27 phases: (list
28 (external-phase kind: 'configure args: (list "--prefix=${out}"))
29 (external-phase kind: 'make)
30 (external-phase kind: 'install))))))