summaryrefslogtreecommitdiff
path: root/gnu/packages/bash.scm
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2024-05-01 10:00:54 +0300
committerOleg Pykhalov <go.wigust@gmail.com>2024-05-01 10:05:42 +0300
commitb32d129ad945052c6755b0cc4970f7827821553c (patch)
treedbaf28703298cc9c234a6db5d0f28ea524691883 /gnu/packages/bash.scm
parent7d7fca19429cf9d38125610f46333eb02fc2d3fd (diff)
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
Diffstat (limited to 'gnu/packages/bash.scm')
-rw-r--r--gnu/packages/bash.scm12
1 files changed, 9 insertions, 3 deletions
diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm
index bb3359d5d1c..9ecec0a4849 100644
--- a/gnu/packages/bash.scm
+++ b/gnu/packages/bash.scm
@@ -7,6 +7,7 @@
7;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com> 7;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
8;;; Copyright © 2020 Zhu Zihao <all_but_last@163.com> 8;;; Copyright © 2020 Zhu Zihao <all_but_last@163.com>
9;;; Copyright © 2021 Marius Bakke <marius@gnu.org> 9;;; Copyright © 2021 Marius Bakke <marius@gnu.org>
10;;; Copyright © 2024 Oleg Pykhalov <go.wigust@gmail.com>
10;;; 11;;;
11;;; This file is part of GNU Guix. 12;;; This file is part of GNU Guix.
12;;; 13;;;
@@ -368,7 +369,7 @@ capturing.")
368(define-public bats 369(define-public bats
369 (package 370 (package
370 (name "bats") 371 (name "bats")
371 (version "1.2.0") 372 (version "1.11.0")
372 (source (origin 373 (source (origin
373 (method git-fetch) 374 (method git-fetch)
374 (uri (git-reference 375 (uri (git-reference
@@ -377,7 +378,7 @@ capturing.")
377 (file-name (git-file-name name version)) 378 (file-name (git-file-name name version))
378 (sha256 379 (sha256
379 (base32 380 (base32
380 "0f59zh4d4pa1a7ybs5zl6h0csbqqv11lbnq0jl1dgwm1s6p49bsq")))) 381 "1dmgxcqq87vs1l23hb7ghx319w2nvn0w8z2kdxggs2b8n22wi0c2"))))
381 (inputs 382 (inputs
382 (list bash coreutils guile-3.0 ;for wrap-script 383 (list bash coreutils guile-3.0 ;for wrap-script
383 grep)) 384 grep))
@@ -393,7 +394,12 @@ capturing.")
393 ":" (assoc-ref %build-inputs "grep") "/bin" 394 ":" (assoc-ref %build-inputs "grep") "/bin"
394 ":" (assoc-ref %build-inputs "guile") "/bin" 395 ":" (assoc-ref %build-inputs "guile") "/bin"
395 ":" (getenv "PATH"))) 396 ":" (getenv "PATH")))
396 (for-each (lambda (file) (patch-shebang file)) (find-files ".")) 397 (for-each patch-shebang
398 (find-files "."
399 (lambda (file stat)
400 ;; Filter out symlinks.
401 (eq? 'regular (stat:type stat)))
402 #:stat lstat))
397 (substitute* "bin/bats" 403 (substitute* "bin/bats"
398 (("export BATS_ROOT" line) 404 (("export BATS_ROOT" line)
399 (string-append "BATS_ROOT=\"${BATS_ROOT:-" %output "/libexec/bats-core}\"\n" 405 (string-append "BATS_ROOT=\"${BATS_ROOT:-" %output "/libexec/bats-core}\"\n"