Update, reindent infrastructure files
* guix.scm: Define guile-ts-next to use newer commit "correctly" * manifest.scm: Define guile-hall-next to use newer commit "correctly"
This commit is contained in:
parent
5ab58f9248
commit
b27cfd7bc3
2 changed files with 204 additions and 244 deletions
22
guix.scm
22
guix.scm
|
@ -8,15 +8,26 @@
|
||||||
(guix build-system gnu)
|
(guix build-system gnu)
|
||||||
(guix download)
|
(guix download)
|
||||||
(guix gexp)
|
(guix gexp)
|
||||||
|
(guix git-download)
|
||||||
(guix transformations)
|
(guix transformations)
|
||||||
((guix licenses)
|
((guix licenses)
|
||||||
#:prefix license:)
|
#:prefix license:)
|
||||||
(guix packages)
|
(guix packages)
|
||||||
(srfi srfi-1))
|
(srfi srfi-1))
|
||||||
|
|
||||||
(define guile-ts-transform
|
(define guile-ts-next
|
||||||
(options->transformation
|
(let ((commit "266453a"))
|
||||||
'((with-commit . "guile-ts=266453a"))))
|
(package
|
||||||
|
(inherit guile-ts)
|
||||||
|
(source (origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/Z572/guile-ts")
|
||||||
|
(commit commit)))
|
||||||
|
(file-name (git-file-name (package-name guile-ts) commit))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1s65kpwhsphbjlggpc6gy1wbap85yjzdb69xfvs8j204w24smjps")))))))
|
||||||
|
|
||||||
(package
|
(package
|
||||||
(name "sloth")
|
(name "sloth")
|
||||||
|
@ -63,7 +74,7 @@
|
||||||
;; with inputs because DRY
|
;; with inputs because DRY
|
||||||
(list #$guile-config
|
(list #$guile-config
|
||||||
#$guile-ncurses
|
#$guile-ncurses
|
||||||
#$(guile-ts-transform guile-ts))))))
|
#$guile-ts-next)))))
|
||||||
(define bin (string-append #$output "/bin/"))
|
(define bin (string-append #$output "/bin/"))
|
||||||
(define site (guile-uncompiled-dir #$output ""))
|
(define site (guile-uncompiled-dir #$output ""))
|
||||||
(define version (caddr (scandir site)))
|
(define version (caddr (scandir site)))
|
||||||
|
@ -125,7 +136,7 @@
|
||||||
(inputs (list guile-3.0
|
(inputs (list guile-3.0
|
||||||
guile-config
|
guile-config
|
||||||
guile-ncurses
|
guile-ncurses
|
||||||
(guile-ts-transform guile-ts)
|
guile-ts-next
|
||||||
tree-sitter-bash
|
tree-sitter-bash
|
||||||
tree-sitter-bibtex
|
tree-sitter-bibtex
|
||||||
tree-sitter-c
|
tree-sitter-c
|
||||||
|
@ -167,4 +178,3 @@
|
||||||
"TODO")
|
"TODO")
|
||||||
(home-page "https://git.solarpunk.moe/Sloth/sloth")
|
(home-page "https://git.solarpunk.moe/Sloth/sloth")
|
||||||
(license license:gpl3+))
|
(license license:gpl3+))
|
||||||
|
|
||||||
|
|
60
manifest.scm
60
manifest.scm
|
@ -19,68 +19,18 @@
|
||||||
(guix packages))
|
(guix packages))
|
||||||
|
|
||||||
(define guile-hall-next
|
(define guile-hall-next
|
||||||
|
(let ((commit "9ca0c3e"))
|
||||||
(package
|
(package
|
||||||
(name "guile-hall")
|
(inherit guile-hall)
|
||||||
(version "0.4.1-next")
|
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://gitlab.com/a-sassmannshausen/guile-hall")
|
(url "https://gitlab.com/a-sassmannshausen/guile-hall")
|
||||||
(commit "9ca0c3e")))
|
(commit commit)))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name (package-name guile-hall) commit))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0fi7isi5wq6awssk08zj4scifrb9g1g1027id5j87awb29q22jlj"))))
|
(base32 "0fi7isi5wq6awssk08zj4scifrb9g1g1027id5j87awb29q22jlj")))))))
|
||||||
(build-system gnu-build-system)
|
|
||||||
(arguments
|
|
||||||
(list #:phases
|
|
||||||
#~(modify-phases %standard-phases
|
|
||||||
(add-after 'install 'hall-wrap-binaries
|
|
||||||
(lambda _
|
|
||||||
(use-modules (ice-9 ftw))
|
|
||||||
(define (compiled-dir out version)
|
|
||||||
(string-append out "/lib/guile/"
|
|
||||||
version
|
|
||||||
"/site-ccache"))
|
|
||||||
(define (uncompiled-dir out version)
|
|
||||||
(string-append out
|
|
||||||
"/share/guile/site"
|
|
||||||
(if (string-null? version) ""
|
|
||||||
"/")
|
|
||||||
version))
|
|
||||||
(define (dep-path env modules path)
|
|
||||||
(list env ":"
|
|
||||||
'prefix
|
|
||||||
(cons modules
|
|
||||||
(map (lambda (input)
|
|
||||||
(string-append input path))
|
|
||||||
(list #$guile-config)))))
|
|
||||||
(define bin (string-append #$output "/bin/"))
|
|
||||||
(define site (uncompiled-dir #$output ""))
|
|
||||||
(define version (caddr (scandir site)))
|
|
||||||
(wrap-program (string-append bin "hall")
|
|
||||||
(dep-path
|
|
||||||
"GUILE_LOAD_PATH"
|
|
||||||
(uncompiled-dir #$output version)
|
|
||||||
(uncompiled-dir "" version))
|
|
||||||
(dep-path
|
|
||||||
"GUILE_LOAD_COMPILED_PATH"
|
|
||||||
(compiled-dir #$output version)
|
|
||||||
(compiled-dir "" version))))))))
|
|
||||||
(native-inputs (list autoconf
|
|
||||||
automake
|
|
||||||
pkg-config
|
|
||||||
texinfo))
|
|
||||||
(inputs (list guile-3.0))
|
|
||||||
(propagated-inputs (list guile-config))
|
|
||||||
(synopsis "Guile project tooling")
|
|
||||||
(description
|
|
||||||
"Hall is a command-line application and a set of Guile libraries that
|
|
||||||
allow you to quickly create and publish Guile projects. It allows you to
|
|
||||||
transparently support the GNU build system, manage a project hierarchy &
|
|
||||||
provides tight coupling to Guix.")
|
|
||||||
(home-page "https://gitlab.com/a-sassmannshausen/guile-hall")
|
|
||||||
(license license:gpl3+)))
|
|
||||||
|
|
||||||
(packages->manifest
|
(packages->manifest
|
||||||
(list coreutils
|
(list coreutils
|
||||||
|
|
Loading…
Reference in a new issue