AtlatestRepositorycore-channel
core-channel / tree / src / core / packagesdemo.sgl
1
;;; Smoke-test packages.2
;;;3
;;; GNU hello exists to be the smallest thing that can go wrong. It is what4
;;; `demo/env.sgl` builds, what the README's first-run instructions tell a new5
;;; user to run, and what `scripts/gate-crosscheckout.sh` uses to prove that a6
;;; bare clone of this repository can bootstrap and produce a running program.7
;;;8
;;; It therefore needs a `core/hello` catalogue binding. Without one the9
;;; documented onboarding path fails with "catalogue has no binding core/hello",10
;;; because `production-resolve` only resolves names the signed catalogue11
;;; 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
(begin19
(define hello20
(package21
name: "hello"22
version: "2.12.2"23
source: (external-source24
location: "https://ftp.gnu.org/gnu/hello/hello-2.12.2.tar.gz"25
sha256: "5a9a996dc292cc24dcf411cee87e92f6aae5b8d13bd9c6819b4c7a9dce0818ab")26
buildenv: core-buildenv27
phases: (list28
(external-phase kind: 'configure args: (list "--prefix=${out}"))29
(external-phase kind: 'make)30
(external-phase kind: 'install))))))