mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: bats: Update to 1.11.0.
* gnu/packages/bash.scm (bats)[version]: Update to 1.11.0. [arguments]<#:builder>: Filter out symlinks in patch-shebang. Change-Id: I74405b99f91172c10b8c81caa0f3f46e1df4d74e
This commit is contained in:
parent
7d7fca1942
commit
b32d129ad9
1 changed files with 9 additions and 3 deletions
|
@ -7,6 +7,7 @@
|
||||||
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
|
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||||
;;; Copyright © 2020 Zhu Zihao <all_but_last@163.com>
|
;;; Copyright © 2020 Zhu Zihao <all_but_last@163.com>
|
||||||
;;; Copyright © 2021 Marius Bakke <marius@gnu.org>
|
;;; Copyright © 2021 Marius Bakke <marius@gnu.org>
|
||||||
|
;;; Copyright © 2024 Oleg Pykhalov <go.wigust@gmail.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -368,7 +369,7 @@ (define-public bash-tap
|
||||||
(define-public bats
|
(define-public bats
|
||||||
(package
|
(package
|
||||||
(name "bats")
|
(name "bats")
|
||||||
(version "1.2.0")
|
(version "1.11.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
|
@ -377,7 +378,7 @@ (define-public bats
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0f59zh4d4pa1a7ybs5zl6h0csbqqv11lbnq0jl1dgwm1s6p49bsq"))))
|
"1dmgxcqq87vs1l23hb7ghx319w2nvn0w8z2kdxggs2b8n22wi0c2"))))
|
||||||
(inputs
|
(inputs
|
||||||
(list bash coreutils guile-3.0 ;for wrap-script
|
(list bash coreutils guile-3.0 ;for wrap-script
|
||||||
grep))
|
grep))
|
||||||
|
@ -393,7 +394,12 @@ (define-public bats
|
||||||
":" (assoc-ref %build-inputs "grep") "/bin"
|
":" (assoc-ref %build-inputs "grep") "/bin"
|
||||||
":" (assoc-ref %build-inputs "guile") "/bin"
|
":" (assoc-ref %build-inputs "guile") "/bin"
|
||||||
":" (getenv "PATH")))
|
":" (getenv "PATH")))
|
||||||
(for-each (lambda (file) (patch-shebang file)) (find-files "."))
|
(for-each patch-shebang
|
||||||
|
(find-files "."
|
||||||
|
(lambda (file stat)
|
||||||
|
;; Filter out symlinks.
|
||||||
|
(eq? 'regular (stat:type stat)))
|
||||||
|
#:stat lstat))
|
||||||
(substitute* "bin/bats"
|
(substitute* "bin/bats"
|
||||||
(("export BATS_ROOT" line)
|
(("export BATS_ROOT" line)
|
||||||
(string-append "BATS_ROOT=\"${BATS_ROOT:-" %output "/libexec/bats-core}\"\n"
|
(string-append "BATS_ROOT=\"${BATS_ROOT:-" %output "/libexec/bats-core}\"\n"
|
||||||
|
|
Loading…
Reference in a new issue