diff options
-rw-r--r-- | gnu/packages/calendar.scm | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/gnu/packages/calendar.scm b/gnu/packages/calendar.scm index 9f97b20705..32493b0336 100644 --- a/gnu/packages/calendar.scm +++ b/gnu/packages/calendar.scm @@ -437,23 +437,33 @@ configured to show the current time in different timezones.") (license license:bsd-3)))) (define-public hebcal - (let ((commit "2384bb88dc1a41a4a5ae57a29fb58b2dd49a475d") - (revision "0")) (package (name "hebcal") - (version (git-version "5.3.0" revision commit)) + (version "5.8.7") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/hebcal/hebcal") - (commit commit))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 - "12rv3b51jb7wcjwmmizz9jkw7gh37yklys4xncvpzgxdkkfgmmjx")))) + "1a1b9jip1ha6bzv6xg9fx47q167yzgbxjvrp5zngv175nzl9427j")))) (build-system go-build-system) (arguments - (list #:import-path "github.com/hebcal/hebcal")) + (list + #:install-source? #f + #:import-path "github.com/hebcal/hebcal" + #:phases + #~(modify-phases %standard-phases + ;; taken from Makefile + (add-after 'unpack 'set-defautl-city + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (with-output-to-file "dcity.go" + (lambda () + (format #t "package main~%var defaultCity = ~s~%" + "Paris"))))))))) (inputs (list go-github-com-hebcal-hebcal-go go-github-com-pborman-getopt-v2)) @@ -469,4 +479,4 @@ the daily leaf of Talmud. The program can help with counting of the Omer or with calculation of Hebrew yahrzeits, birthdays, or anniversaries.") (home-page "https://github.com/hebcal/hebcal") - (license license:gpl2+)))) + (license license:gpl2+))) |