diff options
| author | Josep Bigorra <jjbigorra@gmail.com> | 2026-07-18 19:11:45 +0200 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-07-27 13:13:17 +0900 |
| commit | 9cd90332d8abc08719a9d6fe1d58ba8082784074 (patch) | |
| tree | c1d908da6d2ce0b770af4d758378e02146922b1a /gnu/packages/databases.scm | |
| parent | 0de5cbd0c4cae79b8318e5c984c7ca9fc54330e1 (diff) | |
gnu: mutastructura: Update to 0.7.1.
* gnu/packages/databases.scm (mutastructura): Update to 0.7.1.
[arguments]: Add '#:modules'.
<#:phases>{install-program-files}: Remove log.bash.
{fix-paths}: Add phase.
[inputs]: Add coreutils and util-linux.
Remove native-inputs as it was redundant.
[description]: Remove trailing space.
Merges: https://codeberg.org/guix/guix/pulls/10030
Reviewed-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
Diffstat (limited to 'gnu/packages/databases.scm')
| -rw-r--r-- | gnu/packages/databases.scm | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index b3c5a549cb9..d204c0b44e4 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm | |||
| @@ -4516,7 +4516,7 @@ and web services platform functionality.") | |||
| 4516 | (build-system pyproject-build-system) | 4516 | (build-system pyproject-build-system) |
| 4517 | (arguments | 4517 | (arguments |
| 4518 | ;; TODO: tests require a complex setup, see <.github/workflows/main.yml>. | 4518 | ;; TODO: tests require a complex setup, see <.github/workflows/main.yml>. |
| 4519 | (list #:tests? #f)) | 4519 | (list #:tests? #f)) |
| 4520 | (native-inputs | 4520 | (native-inputs |
| 4521 | (list python-pbr)) | 4521 | (list python-pbr)) |
| 4522 | (propagated-inputs | 4522 | (propagated-inputs |
| @@ -5175,7 +5175,7 @@ files or Python scripts that define a list of migration steps.") | |||
| 5175 | (define-public mutastructura | 5175 | (define-public mutastructura |
| 5176 | (package | 5176 | (package |
| 5177 | (name "mutastructura") | 5177 | (name "mutastructura") |
| 5178 | (version "0.6.0") | 5178 | (version "0.7.1") |
| 5179 | (source | 5179 | (source |
| 5180 | (origin | 5180 | (origin |
| 5181 | (method git-fetch) | 5181 | (method git-fetch) |
| @@ -5184,11 +5184,14 @@ files or Python scripts that define a list of migration steps.") | |||
| 5184 | (commit (string-append "v" version)))) | 5184 | (commit (string-append "v" version)))) |
| 5185 | (file-name (git-file-name name version)) | 5185 | (file-name (git-file-name name version)) |
| 5186 | (sha256 | 5186 | (sha256 |
| 5187 | (base32 "08vzlc5imavqf3bdzgbh70c7z44xjhf05gr7i2g5ksl49lv39gzh")))) | 5187 | (base32 "0rzy7clbzc580xp1mk2qwqv29lq2xn8sfr9lv1rdczk5fj55m4d6")))) |
| 5188 | (build-system guile-build-system) | 5188 | (build-system guile-build-system) |
| 5189 | (arguments | 5189 | (arguments |
| 5190 | (list | 5190 | (list |
| 5191 | #:source-directory "src" | 5191 | #:source-directory "src" |
| 5192 | #:modules '((guix build guile-build-system) | ||
| 5193 | (guix build utils) | ||
| 5194 | (ice-9 match)) | ||
| 5192 | #:phases | 5195 | #:phases |
| 5193 | #~(modify-phases %standard-phases | 5196 | #~(modify-phases %standard-phases |
| 5194 | (add-before 'build 'install-program-files | 5197 | (add-before 'build 'install-program-files |
| @@ -5198,21 +5201,33 @@ files or Python scripts that define a list of migration steps.") | |||
| 5198 | (copy-recursively "resources" | 5201 | (copy-recursively "resources" |
| 5199 | (string-append share "/resources")) | 5202 | (string-append share "/resources")) |
| 5200 | (install-file "scripts/mutastructura" bin) | 5203 | (install-file "scripts/mutastructura" bin) |
| 5201 | (install-file "scripts/log.bash" | 5204 | (chmod (string-append bin "/mutastructura") #o755)))) |
| 5202 | (string-append share "/scripts/")) | 5205 | (add-after 'unpack 'fix-paths |
| 5203 | (chmod (string-append bin "/mutastructura") #o755))))))) | 5206 | (lambda* (#:key inputs #:allow-other-keys) |
| 5204 | (native-inputs (list guile-3.0)) | 5207 | (for-each (match-lambda |
| 5208 | ((pattern program format-string) | ||
| 5209 | (substitute* "scripts/mutastructura" | ||
| 5210 | ((pattern) | ||
| 5211 | (format #f format-string | ||
| 5212 | (search-input-file inputs | ||
| 5213 | (string-append "bin/" | ||
| 5214 | program))))))) | ||
| 5215 | '(("readlink -f " "readlink" "~s -f ") | ||
| 5216 | ("realpath " "realpath" "~s ") | ||
| 5217 | ("dirname " "dirname" "~s ") | ||
| 5218 | ("getopt " "getopt" "~s ") | ||
| 5219 | ("exec guile " "guile" "exec ~s ")))))))) | ||
| 5205 | (propagated-inputs (list guile-dbi | 5220 | (propagated-inputs (list guile-dbi |
| 5206 | guile-dbd-mysql | 5221 | guile-dbd-mysql |
| 5207 | guile-dbd-sqlite3 | 5222 | guile-dbd-sqlite3 |
| 5208 | guile-dbd-postgresql | 5223 | guile-dbd-postgresql |
| 5209 | guile-gcrypt)) | 5224 | guile-gcrypt)) |
| 5210 | (inputs (list guile-3.0 bash-minimal)) | 5225 | (inputs (list guile-3.0 bash-minimal coreutils util-linux)) |
| 5211 | (home-page "https://codeberg.org/jjba23/mutastructura") | 5226 | (home-page "https://codeberg.org/jjba23/mutastructura") |
| 5212 | (synopsis "Relational database schema migrations powered by Guile Scheme") | 5227 | (synopsis "Relational database schema migrations powered by Guile Scheme") |
| 5213 | (description | 5228 | (description |
| 5214 | "Mutastructura provides a familiar, declarative and transactional | 5229 | "Mutastructura provides a familiar, declarative and transactional |
| 5215 | approach to managing database states. It exposes a user-friendly | 5230 | approach to managing database states. It exposes a user-friendly |
| 5216 | @acronym{CLI, command-line interface} and has support for PostgreSQL, MySQL, and SQLite. | 5231 | @acronym{CLI, command-line interface} and has support for PostgreSQL, MySQL, and SQLite. |
| 5217 | It also exposes library functions and can be imported and used directly from other Guile code. | 5232 | It also exposes library functions and can be imported and used directly from other Guile code. |
| 5218 | 5233 | ||
