summaryrefslogtreecommitdiff
path: root/gnu/packages/shellutils.scm
diff options
context:
space:
mode:
authorZheng Junjie <z572@z572.online>2025-05-10 00:03:33 +0800
committerChristopher Baines <mail@cbaines.net>2025-05-11 10:19:14 +0100
commit9f227e39151684503a3bd2e2cc6820aca04169b8 (patch)
treefe03e2f5e8a5c699b7d4be25e07365c884207c42 /gnu/packages/shellutils.scm
parent65dea0cde084dc364dbd0dbd51e589733951fed6 (diff)
gnu: direnv: Update to 2.36.0.
* gnu/packages/shellutils.scm (direnv): Update to 2.36.0. [arguments]: Use G-expressions. Change-Id: Icc3a96a8a5d44fa48b2ef3af68714776dd497102 Signed-off-by: Christopher Baines <mail@cbaines.net>
Diffstat (limited to 'gnu/packages/shellutils.scm')
-rw-r--r--gnu/packages/shellutils.scm55
1 files changed, 27 insertions, 28 deletions
diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm
index ea6dcafbc94..6c1bd0dc17d 100644
--- a/gnu/packages/shellutils.scm
+++ b/gnu/packages/shellutils.scm
@@ -742,7 +742,7 @@ Latin script and other languages.")
742(define-public direnv 742(define-public direnv
743 (package 743 (package
744 (name "direnv") 744 (name "direnv")
745 (version "2.35.0") 745 (version "2.36.0")
746 (source 746 (source
747 (origin (method git-fetch) 747 (origin (method git-fetch)
748 (uri (git-reference 748 (uri (git-reference
@@ -751,35 +751,34 @@ Latin script and other languages.")
751 (file-name (git-file-name name version)) 751 (file-name (git-file-name name version))
752 (sha256 752 (sha256
753 (base32 753 (base32
754 "0l9pziv5nxlq6dxbsqrfl6z4ibq171wfx6wmjs392cdn5w2n908b")))) 754 "0p6n9zi3p9frj3ndnpdc1cz51hq0nkyjc9b1rqg7967l8vhdr8f6"))))
755 (build-system go-build-system) 755 (build-system go-build-system)
756 (arguments 756 (arguments
757 '(#:import-path "github.com/direnv/direnv" 757 (list #:import-path "github.com/direnv/direnv"
758 #:phases 758 #:phases
759 (modify-phases %standard-phases 759 #~(modify-phases %standard-phases
760 (add-after 'install 'install-manpages 760 (add-after 'install 'install-manpages
761 (lambda* (#:key outputs #:allow-other-keys) 761 (lambda _
762 (let* ((out (assoc-ref outputs "out")) 762 (let* ((man (string-append #$output "/share/man/man1")))
763 (man (string-append out "/share/man/man1"))) 763 (mkdir-p man)
764 (mkdir-p man) 764 (with-directory-excursion "src/github.com/direnv/direnv"
765 (with-directory-excursion "src/github.com/direnv/direnv" 765 (install-file "man/direnv.1" man)
766 (install-file "man/direnv.1" man) 766 (install-file "man/direnv-stdlib.1" man)
767 (install-file "man/direnv-stdlib.1" man) 767 (install-file "man/direnv.toml.1" man)))))
768 (install-file "man/direnv.toml.1" man))))) 768 (replace 'check
769 (replace 'check 769 (lambda* (#:key tests? #:allow-other-keys)
770 (lambda* (#:key tests? #:allow-other-keys) 770 (when tests?
771 (when tests? 771 (setenv "HOME" "/tmp")
772 (setenv "HOME" "/tmp") 772 (with-directory-excursion "src/github.com/direnv/direnv"
773 (with-directory-excursion "src/github.com/direnv/direnv" 773 ;; The following file needs to be writable so it can be
774 ;; The following file needs to be writable so it can be 774 ;; modified by the testsuite.
775 ;; modified by the testsuite. 775 (make-file-writable "test/scenarios/base/.envrc")
776 (make-file-writable "test/scenarios/base/.envrc") 776 ;; We need to manually run test because make test
777 ;; We need to manually run test because make test 777 ;; tries to use go modules
778 ;; tries to use go modules 778 (invoke "go" "test" "./...")
779 (invoke "go" "test" "./...") 779 ;; Clean up from the tests, especially so that the extra
780 ;; Clean up from the tests, especially so that the extra 780 ;; direnv executable that's generated is removed.
781 ;; direnv executable that's generated is removed. 781 (invoke "make" "clean"))))))))
782 (invoke "make" "clean"))))))))
783 (native-inputs 782 (native-inputs
784 (list go-github-com-burntsushi-toml 783 (list go-github-com-burntsushi-toml
785 go-github-com-mattn-go-isatty 784 go-github-com-mattn-go-isatty