mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-15 07:27:48 -05:00
gnu: Add go-gopkg-in-irc-v4.
* gnu/packages/irc.scm (go-gopkg-in-irc-v4): New variable. Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Change-Id: Ie1afdde3d1a23154e592445b5ce91e5918c6c822
This commit is contained in:
parent
b6a8c4c142
commit
881f9630c9
1 changed files with 34 additions and 0 deletions
|
@ -825,6 +825,40 @@ (define-public go-gopkg-in-irc-v3
|
|||
building block for other projects.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public go-gopkg-in-irc-v4
|
||||
(package
|
||||
(inherit go-gopkg-in-irc-v3)
|
||||
(name "go-gopkg-in-irc-v4")
|
||||
(version "4.0.0")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://gopkg.in/irc.v4")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "1yr7m1vz7fj0jbmk8njg54nyc9hx4kv24k13sjc4zj5fyqljj0p2"))))
|
||||
(build-system go-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:import-path "gopkg.in/irc.v4"
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
;; testcases is renamed to _testcases in v4 for some reason.
|
||||
(add-before 'check 'adjust-testcases-data
|
||||
(lambda* (#:key import-path #:allow-other-keys)
|
||||
(with-directory-excursion (string-append "src/" import-path)
|
||||
(mkdir-p "./_testcases/tests")
|
||||
(for-each
|
||||
(lambda (file)
|
||||
(install-file file "./_testcases/tests"))
|
||||
(find-files
|
||||
#$(this-package-native-input "python-irc-parser-tests") "\\.yaml$"))))))))
|
||||
(propagated-inputs
|
||||
(modify-inputs (package-propagated-inputs go-gopkg-in-irc-v3)
|
||||
(append go-golang-org-x-time)))))
|
||||
|
||||
(define-public chathistorysync
|
||||
(package
|
||||
(name "chathistorysync")
|
||||
|
|
Loading…
Reference in a new issue