diff options
author | Jesse Eisses <jesse@eisses.email> | 2024-04-26 10:01:58 +0200 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-05-07 15:38:28 +0100 |
commit | 881f9630c99e1aeeb7d539a58ac8fff4bf7a12a7 (patch) | |
tree | fa38848338515ea36cbaa66f15f41992814177d1 /gnu/packages/irc.scm | |
parent | b6a8c4c1427ed89cf1cc0fde3036173dd38fc851 (diff) |
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
Diffstat (limited to 'gnu/packages/irc.scm')
-rw-r--r-- | gnu/packages/irc.scm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm index 1b291f54b9..33cf3e8043 100644 --- a/gnu/packages/irc.scm +++ b/gnu/packages/irc.scm @@ -825,6 +825,40 @@ parsers") 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") |