Working guix package and test

This commit is contained in:
TakeV 2023-07-02 22:57:54 -07:00
parent e46f2f0566
commit 7f0364de19
Signed by: TakeV
GPG Key ID: A64F41345C7400AF
2 changed files with 30 additions and 16 deletions

View File

@ -1,7 +1,9 @@
(use-modules
(guix gexp)
(guix packages)
((guix licenses) #:prefix license:)
(guix download)
(guix git-download)
(guix build-system gnu)
(gnu packages)
(gnu packages autotools)
@ -16,18 +18,30 @@
(version "0.1")
(source (local-file %source-dir
#:recursive? #t
#:select? (git-predicate %source-dir))))
(build-system gnu-build-system)
(arguments `())
(native-inputs
(list autoconf
automake
pkg-config
texinfo)))
(inputs (list guile-3.0))
(propagated-inputs `())
(synopsis "")
(description "")
(home-page "")
(license license:gpl3+)))
#:select? (git-predicate %source-dir)))
(build-system gnu-build-system)
(arguments
(list
#:make-flags
#~(list "GUILE_AUTO_COMPILE=0")
#:phases
#~(modify-phases %standard-phases
(delete 'strip)
(add-before 'configure 'hall-build
(lambda _
(system* "hall" "build" "-x")))
(add-after 'hall-build 'autoreconf
(lambda _
(system* "autoreconf" "-vif"))))))
(native-inputs
(list autoconf
automake
guile-hall
pkg-config
texinfo))
(inputs (list guile-3.0))
(propagated-inputs (list guile-config))
(synopsis "???")
(description "???")
(home-page "???")
(license license:gpl3+)))

View File

@ -5,4 +5,4 @@
(test-group "bencode.scm"
(test-group "encode"
(test-group "string->bencode"
(test-eqv "0:" (string->bencode "")))))
(test-equal "0:" (string->bencode "")))))