Silas Vedder
2 years ago
12 changed files with 122 additions and 135 deletions
@ -1,95 +1,85 @@ |
|||||||
(use-modules (guix packages) |
(use-modules |
||||||
((guix licenses) |
(guix packages) |
||||||
#:prefix license:) |
((guix licenses) #:prefix license:) |
||||||
(guix download) |
(guix download) |
||||||
(guix git-download) |
(guix build-system gnu) |
||||||
(guix build-system gnu) |
(guix gexp) |
||||||
(gnu packages) |
(gnu packages) |
||||||
(gnu packages autotools) |
(gnu packages autotools) |
||||||
(gnu packages guile) |
(gnu packages guile) |
||||||
(gnu packages guile-xyz) |
(gnu packages guile-xyz) |
||||||
(gnu packages pkg-config) |
(gnu packages pkg-config) |
||||||
(gnu packages texinfo)) |
(gnu packages texinfo)) |
||||||
|
|
||||||
(define-public bible-tools |
(package |
||||||
(package |
(name "bible-tools") |
||||||
(name "bible-tools") |
(version "1.0") |
||||||
(version "1.0") |
(source (local-file "./bible-tools-1.0.tar.gz")) |
||||||
(source |
(build-system gnu-build-system) |
||||||
(origin |
(arguments |
||||||
(method git-fetch) |
`(#:modules |
||||||
(uri (git-reference |
((ice-9 match) |
||||||
(url "https://git.silasvedder.xyz/silasfox/bible-tools.git") |
(ice-9 ftw) |
||||||
(commit "bc925d8"))) |
,@%gnu-build-system-modules) |
||||||
(file-name "bible-tools-1.0-checkout") |
#:phases |
||||||
(sha256 (base32 "07221jw4gl48cg45znwjkc7871in3pfq488ig4vnbjygqbg4wawh")))) |
(modify-phases |
||||||
(build-system gnu-build-system) |
%standard-phases |
||||||
(arguments |
(add-after |
||||||
`(#:modules |
'install |
||||||
((ice-9 match) |
'hall-wrap-binaries |
||||||
(ice-9 ftw) |
(lambda* (#:key inputs outputs #:allow-other-keys) |
||||||
,@%gnu-build-system-modules) |
(let* ((compiled-dir |
||||||
#:phases |
(lambda (out version) |
||||||
(modify-phases |
(string-append |
||||||
%standard-phases |
out |
||||||
(add-after |
"/lib/guile/" |
||||||
'install |
version |
||||||
'hall-wrap-binaries |
"/site-ccache"))) |
||||||
(lambda* (#:key inputs outputs #:allow-other-keys) |
(uncompiled-dir |
||||||
(let* ((compiled-dir |
(lambda (out version) |
||||||
(lambda (out version) |
(string-append |
||||||
(string-append |
out |
||||||
out |
"/share/guile/site" |
||||||
"/lib/guile/" |
(if (string-null? version) "" "/") |
||||||
version |
version))) |
||||||
"/site-ccache"))) |
(dep-path |
||||||
(uncompiled-dir |
(lambda (env modules path) |
||||||
(lambda (out version) |
(list env |
||||||
(string-append |
":" |
||||||
out |
'prefix |
||||||
"/share/guile/site" |
(cons modules |
||||||
(if (string-null? version) "" "/") |
(map (lambda (input) |
||||||
version))) |
(string-append |
||||||
(dep-path |
(assoc-ref inputs input) |
||||||
(lambda (env modules path) |
path)) |
||||||
(list env |
,''()))))) |
||||||
":" |
(out (assoc-ref outputs "out")) |
||||||
'prefix |
(bin (string-append out "/bin/")) |
||||||
(cons modules |
(site (uncompiled-dir out ""))) |
||||||
(map (lambda (input) |
(match (scandir site) |
||||||
(string-append |
(("." ".." version) |
||||||
(assoc-ref inputs input) |
(for-each |
||||||
path)) |
(lambda (file) |
||||||
,''()))))) |
(wrap-program |
||||||
(out (assoc-ref outputs "out")) |
(string-append bin file) |
||||||
(bin (string-append out "/bin/")) |
(dep-path |
||||||
(site (uncompiled-dir out ""))) |
"GUILE_LOAD_PATH" |
||||||
(match (scandir site) |
(uncompiled-dir out version) |
||||||
(("." ".." version) |
(uncompiled-dir "" version)) |
||||||
(for-each |
(dep-path |
||||||
(lambda (file) |
"GUILE_LOAD_COMPILED_PATH" |
||||||
(wrap-program |
(compiled-dir out version) |
||||||
(string-append bin file) |
(compiled-dir "" version)))) |
||||||
(dep-path |
,''("bible-app" "word-counter" "bible2latex")) |
||||||
"GUILE_LOAD_PATH" |
#t)))))))) |
||||||
(uncompiled-dir out version) |
(native-inputs |
||||||
(uncompiled-dir "" version)) |
`(("autoconf" ,autoconf) |
||||||
(dep-path |
("automake" ,automake) |
||||||
"GUILE_LOAD_COMPILED_PATH" |
("pkg-config" ,pkg-config) |
||||||
(compiled-dir out version) |
("texinfo" ,texinfo))) |
||||||
(compiled-dir "" version)))) |
(inputs `(("guile" ,guile-3.0))) |
||||||
,''("bible-app" "word-counter" "bible2latex")) |
(propagated-inputs `()) |
||||||
#t)))))))) |
(synopsis "") |
||||||
(native-inputs |
(description "") |
||||||
`(("autoconf" ,autoconf) |
(home-page "") |
||||||
("automake" ,automake) |
(license license:gpl3+)) |
||||||
("pkg-config" ,pkg-config) |
|
||||||
("texinfo" ,texinfo))) |
|
||||||
(inputs `(("guile" ,guile-3.0))) |
|
||||||
(propagated-inputs `()) |
|
||||||
(synopsis "") |
|
||||||
(description "") |
|
||||||
(home-page "") |
|
||||||
(license license:gpl3+))) |
|
||||||
|
|
||||||
bible-tools |
|
||||||
|
Loading…
Reference in new issue