Fix build, add goblins, and add empty example
This commit is contained in:
parent
1e02ecd294
commit
534faca0ee
6 changed files with 63 additions and 30 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -63,3 +63,5 @@ stamp-h[0-9]
|
|||
tmp
|
||||
/.version
|
||||
/doc/stamp-[0-9]
|
||||
scripts/examples/*
|
||||
!scripts/examples/*.in
|
|
@ -1,4 +1,4 @@
|
|||
bin_SCRIPTS =
|
||||
bin_SCRIPTS = scripts/examples/select-list
|
||||
|
||||
nodist_noinst_SCRIPTS = pre-inst-env
|
||||
|
||||
|
@ -26,8 +26,7 @@ SUFFIXES = .scm .go
|
|||
|
||||
SOURCES = buttercup.scm
|
||||
|
||||
TESTS = tests/test-ansi.scm \
|
||||
tests/test-wrap.scm
|
||||
TESTS =
|
||||
|
||||
TEST_EXTENSIONS = .scm
|
||||
SCM_LOG_DRIVER = \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#! /bin/sh
|
||||
#!/bin/sh
|
||||
# Common wrapper for a few potentially missing GNU programs.
|
||||
|
||||
scriptversion=2018-03-07.03; # UTC
|
||||
|
|
|
@ -12,6 +12,7 @@ AM_SILENT_RULES([yes])
|
|||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
|
||||
AC_CONFIG_FILES([scripts/examples/select-list], [chmod +x scripts/examples/select-list])
|
||||
|
||||
dnl Search for 'guile' and 'guild'. This macro defines
|
||||
dnl 'GUILE_EFFECTIVE_VERSION'.
|
||||
|
@ -28,8 +29,9 @@ if test "$cross_compiling" != no; then
|
|||
fi
|
||||
|
||||
dnl Hall auto-generated guile-module dependencies
|
||||
GUILE_MODULE_REQUIRED([reflow])
|
||||
GUILE_MODULE_REQUIRED([reflow wrap])
|
||||
GUILE_MODULE_REQUIRED([termenv])
|
||||
GUILE_MODULE_REQUIRED([goblins])
|
||||
|
||||
dnl Installation directories for .scm and .go files.
|
||||
guilemoduledir="${datarootdir}/guile/site/$GUILE_EFFECTIVE_VERSION"
|
||||
|
|
75
guix.scm
75
guix.scm
|
@ -6,35 +6,60 @@
|
|||
(gnu packages pkg-config)
|
||||
(gnu packages texinfo)
|
||||
(guix build-system gnu)
|
||||
(guix download)
|
||||
(guix git-download)
|
||||
(guix gexp)
|
||||
((guix licenses) #:prefix license:)
|
||||
(guix packages)
|
||||
(solarpunk packages guile)
|
||||
(srfi srfi-1))
|
||||
|
||||
(define (keep-file? file stat)
|
||||
(not (any (lambda (my-string)
|
||||
(string-contains file my-string))
|
||||
(list ".git" ".dir-locals.el" "guix.scm"))))
|
||||
|
||||
(define guile-goblins-git
|
||||
(package
|
||||
(inherit guile-goblins)
|
||||
(version "git")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://gitlab.com/spritely/guile-goblins.git")
|
||||
;; Need version with IO and Christine's call-with-vat fixes! :D
|
||||
(commit "0ebfdef75c921b6b125db2e674153ce55b25fd7b")))
|
||||
(sha256
|
||||
(base32
|
||||
"0ac7mprsaccl8lapb8bbrvybfih6nkpphfbafav5zd26mwg63mgc"))))
|
||||
(native-inputs
|
||||
`(("autoconf" ,autoconf)
|
||||
("automake" ,automake)
|
||||
("pkg-config" ,pkg-config)
|
||||
,@(package-native-inputs guile-goblins)))))
|
||||
|
||||
|
||||
(package
|
||||
(name "guile-buttercup")
|
||||
(version "0.1")
|
||||
(source
|
||||
(local-file
|
||||
(dirname (current-filename))
|
||||
#:recursive?
|
||||
#t
|
||||
#:select?
|
||||
(lambda (file stat)
|
||||
(not (any (lambda (my-string)
|
||||
(string-contains file my-string))
|
||||
(list ".git" ".dir-locals.el" "guix.scm"))))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments `())
|
||||
(native-inputs
|
||||
(list autoconf automake pkg-config texinfo))
|
||||
(inputs (list guile-3.0))
|
||||
(propagated-inputs (list guile-uniseg))
|
||||
(synopsis "Guile library for creating terminal applications")
|
||||
(description
|
||||
"A Guile library, inspired by Go's Bubbletea, for creating beautiful terminal applications using Spritely Goblins.")
|
||||
(home-page
|
||||
"https://git.solarpunk.moe/solarpunk-guile/guile-buttercup")
|
||||
(license license:gpl3+))
|
||||
(name "guile-buttercup")
|
||||
(version "0.1")
|
||||
(source
|
||||
(local-file
|
||||
(dirname (current-filename))
|
||||
#:recursive?
|
||||
#t
|
||||
#:select?
|
||||
(lambda (file stat)
|
||||
(not (any (lambda (my-string)
|
||||
(string-contains file my-string))
|
||||
(list ".git" ".dir-locals.el" "guix.scm"))))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments `())
|
||||
(native-inputs
|
||||
(list autoconf automake pkg-config texinfo))
|
||||
(inputs (list guile-3.0))
|
||||
(propagated-inputs (list guile-reflow guile-termenv guile-goblins-git))
|
||||
(synopsis "Guile library for creating terminal applications")
|
||||
(description
|
||||
"A Guile library, inspired by Go's Bubbletea, for creating beautiful terminal applications using Spritely Goblins.")
|
||||
(home-page
|
||||
"https://git.solarpunk.moe/solarpunk-guile/guile-buttercup")
|
||||
(license license:gpl3+))
|
||||
|
|
5
scripts/examples/select-list.in
Normal file
5
scripts/examples/select-list.in
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!@GUILE@ --no-auto-compile
|
||||
-*- scheme -*-
|
||||
!#
|
||||
|
||||
(use-modules (goblins))
|
Loading…
Reference in a new issue