ajattix/backup/sselp.scm

43 lines
1.6 KiB
Scheme
Raw Normal View History

2024-01-19 23:33:53 +00:00
(define-module (sselp))
(use-modules (guix packages)
(gnu packages version-control)
(guix download)
(guix build-system gnu)
(guix licenses))
(define-public sselp
(package
(name "sselp")
(version "0.2")
(source (origin
(method url-fetch)
(uri (string-append "https://dl.suckless.org/tools/sselp-" version
".tar.gz"))
(sha256
(base32
"08mqp00lrh1chdrbs18qr0xv63h866lkmfj87kfscwdm1vn9a3yd"))))
(build-system gnu-build-system)
(arguments
; '( #:make-flags '("CC=gcc"))
'( #:phases (modify-phases %standard-phases
(delete 'configure)
(add-before 'build 'set-prefix-in-makefile
(lambda* (#:key outputs #:allow-other-keys)
;; Modify the makefile so that its
;; 'PREFIX' variable points to "out".
(let ((out (assoc-ref outputs "out")))
(substitute* "Makefile"
(("PREFIX =.*")
(string-append "PREFIX = "
out "\n")))))))))
(synopsis "Hello, GNU world: An example GNU package")
(description
"GNU Hello prints the message \"Hello, world!\" and then exits. It
serves as an example of standard GNU coding practices. As such, it supports
command-line arguments, multiple languages, and so on.")
(home-page "https://www.gnu.org/software/hello/")
(license gpl3+)))