irc.scm 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. ;;; This file is part of guix-bavier.git
  2. ;;; Copyright © 2020 Eric Bavier <bavier@posteo.net>
  3. ;;; License: GPLv3+
  4. (define-module (bavier packages irc)
  5. #:use-module (guix packages)
  6. #:use-module (guix git-download)
  7. #:use-module (guix build-system gnu)
  8. #:use-module (gnu packages bash)
  9. #:use-module ((guix licenses) #:prefix license:))
  10. (define-public birch
  11. (let ((commit "27691aa4fb2746f73c373e6653c1fb17795729f9")
  12. (revision "2"))
  13. (package
  14. (name "birch")
  15. (version (git-version "0.0.1" revision commit))
  16. (home-page "https://github.com/dylanaraps/birch.git")
  17. (source (origin
  18. (method git-fetch)
  19. (uri (git-reference
  20. (url home-page)
  21. (commit commit)))
  22. (file-name (git-file-name name version))
  23. (sha256
  24. (base32
  25. "1272n3az6ahhqlwf17savp77956icgx6r87dylrmscm936nnqc7i"))))
  26. (inputs
  27. `(("bash-full" ,bash))) ; Need a full-featured bash for tcp/udp handling
  28. (arguments
  29. `(#:phases (modify-phases %standard-phases
  30. (delete 'configure)
  31. (delete 'check)
  32. (replace 'build
  33. (lambda _
  34. (substitute* "birch"
  35. (("#kisslinux") "#guix"))
  36. #t))
  37. (replace 'install
  38. (lambda* (#:key inputs outputs #:allow-other-keys)
  39. (let ((out (assoc-ref outputs "out")))
  40. (patch-shebang "birch"
  41. (list (string-append
  42. (assoc-ref inputs "bash-full")
  43. "/bin")))
  44. (install-file "birch" (string-append out "/bin"))
  45. (install-file "README.md"
  46. (string-append out
  47. "/share/doc/birch-"
  48. ,version))
  49. #t)))
  50. (delete 'patch-shebangs))))
  51. (build-system gnu-build-system)
  52. (synopsis "Internet Relay Chat client")
  53. (description "Birch is an IRC client written in GNU bash.")
  54. (license license:expat))))