mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-11-29 22:58:06 +00:00
rosenthal: guile-toml: Base on the Guix package.
* modules/rosenthal/packages/guile-xyz.scm (guile-toml): Rename to... (guile-toml/dolly): ...this new variable, based on the Guix package. * modules/rosenthal/utils/file.scm (toml-file): Use it.
This commit is contained in:
2 files changed
+18
-32
No files matched your search
@@ -15,34 +15,20 @@
|
|||||||
#:use-module (gnu packages guile)
|
#:use-module (gnu packages guile)
|
||||||
#:use-module (gnu packages guile-xyz))
|
#:use-module (gnu packages guile-xyz))
|
||||||
|
|
||||||
(define-public guile-toml
|
(define-public guile-toml/dolly
|
||||||
(let ((commit "ecb24deb407ef76ef7cf7e9f0115060c98366a6b")
|
(package
|
||||||
(revision "0"))
|
(inherit guile-toml)
|
||||||
(package
|
(name "guile-toml")
|
||||||
(name "guile-toml")
|
(version "1.0")
|
||||||
(version (git-version "0.0.0" revision commit))
|
(source
|
||||||
(source (origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/hylophile/guile-toml")
|
(url "https://github.com/hylophile/guile-toml")
|
||||||
(commit commit)))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "0nyxj9gz0v5n2whi5wikidz5d5a7hf181vwnlr0v1l67xvxhxv1d"))
|
||||||
"1iqxivxcb0dcjbd5ba3c0g3mj71b32qjxfdmljyv9r297yykfd02"))
|
(patches
|
||||||
(patches
|
(rosenthal-patches "guile-toml-support-boolean.patch"))))
|
||||||
(rosenthal-patches "guile-toml-support-boolean.patch"))))
|
(properties '((disable-updater? . #t)))))
|
||||||
(build-system guile-build-system)
|
|
||||||
(arguments
|
|
||||||
(list #:phases
|
|
||||||
#~(modify-phases %standard-phases
|
|
||||||
(add-after 'unpack 'avoid-test-installation
|
|
||||||
(lambda _
|
|
||||||
(delete-file-recursively "test"))))))
|
|
||||||
(native-inputs (list guile-3.0))
|
|
||||||
(propagated-inputs (list guile-json-4))
|
|
||||||
(home-page "https://github.com/hylophile/guile-toml")
|
|
||||||
(synopsis "TOML module for GNU Guile")
|
|
||||||
(description "")
|
|
||||||
(license license:gpl3+)
|
|
||||||
(properties '((disable-updater? . #t))))))
|
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
(define (toml-file name exp)
|
(define (toml-file name exp)
|
||||||
"Return a file-like object, outputing TOML file serialized from EXP."
|
"Return a file-like object, outputing TOML file serialized from EXP."
|
||||||
(computed-file name
|
(computed-file name
|
||||||
(with-extensions (list guile-json-4 guile-toml)
|
(with-extensions (list guile-json-4 guile-toml/dolly)
|
||||||
(if (gexp? exp)
|
(if (gexp? exp)
|
||||||
#~(begin
|
#~(begin
|
||||||
(use-modules (srfi srfi-26) (toml))
|
(use-modules (srfi srfi-26) (toml))
|
||||||
|
|||||||
Reference in new issue
Block a user